我在寫一個多平臺的ncurses文本冒險遊戲。所需的C庫ncursesw爲x86配置,但我的操作系統是Mac OS X 10.6.6 x86_64。在GHC中指定拱?
ghc --make -o rogue rogue.hs
[1 of 2] Compiling Dungeon (Dungeon.hs, Dungeon.o)
[2 of 2] Compiling Main (rogue.hs, rogue.o)
Linking rogue ...
ld: warning: in /usr/local/lib/libncursesw.dylib, file was built for unsupported file format which is not the architecture being linked (i386)
我想,這更容易迫使編譯爲86比說服自制,MinGW的,運用和能力傾向庫包括一個x86_64的ncursesw庫。
是否有命令行選項可以傳遞給ghc來指定體系結構,類似於GCC的-march
?
不幸的是,查看手冊頁並沒有發現任何此類內容。 – 2011-04-04 07:40:03
@Rafe我知道:( – mcandre 2011-04-04 08:11:03
我正在尋找解決這個問題的方法,這是對未來讀者的一個評論Linux的https://ghc.haskell.org/trac/ghc/wiki/Building/Compiling32on64; Windows https: //ghc.haskell.org/trac/ghc/wiki/Building/Preparation/Windows – 2016-12-31 20:20:39