I am writing a multiplayer text adventure game ncurses. The required C library, ncursesw, is configured for x86, but my OS is Mac OS X 10.6.6 x86_64.
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)
It is much easier for me to get compilation for x86 than to convince Homebrew, MinGW, and Aptitude repositories to include the ncursesw x86_64 library.
Is there a command line option that I can pass to ghc to specify an architecture similar to -march for GCC?
x86 x86-64 haskell ncurses ghc
mcandre
source share