【发布时间】:2014-11-28 14:53:17
【问题描述】:
我已经安装了Xamarin来学习F#并写了一个简单的程序:
[<EntryPoint>]
let main args =
printfn "%d" 10
0
如果我从 Xamarin Studio 启动它,一切正常。但是,如果我尝试从控制台编译和运行它,我会收到错误消息:
$ fsharpc some.fs
F# Compiler for F# 3.1 (Open Source Edition)
Freely distributed under the Apache 2.0 Open Source License
# demas at MacBook-Air-demas.local in ~/temporary [17:47:22]
$ ./some.exe
zsh: exec format error: ./some.exe
我该如何解决?
【问题讨论】: