[Haskell-cafe] Link error in ALUT "Hello, World"
Nobuhito Mori
as_nobu_23564 at hotmail.com
Sat Mar 24 22:38:56 EDT 2007
Hi, I installed OpenAL and ALUT bindings downloaded from
http://hackage.haskell.org/packages/archive/pkg-list.html and tried
compilation of "HelloWorld.hs" example which I got from
http://darcs.haskell.org/packages/ALUT/
But it returns errors as follow and I can not get an '.exe' file.
Though there are clearly "link errors", I can not understand why it happens.
By option "-package ALUT", libalut.a (which made by pexports and dlltool
because I do not know original "alut.lib" can be used by mingw) and other
necessary libraries are automatically linked, I think. What is "@8" of
"alutInit at 8"?
How can I avoid these errors?
My environment is
Windows XP SP2, GHC6.6, MinGW/MSYS (so some of mingw tools are duplicated.
one is GHC's, the other is MinGW's)
---------------
>ghc -package ALUT HelloWorld.hs
C:\Program
Files\Haskell\ALUT-2.0\ghc-6.6/libHSALUT-2.0.a(Config.o):fake:(.text+
0x18): undefined reference to `alutInit at 8'
C:\Program
Files\Haskell\ALUT-2.0\ghc-6.6/libHSALUT-2.0.a(Config.o):fake:(.text+
0xdc): undefined reference to `alutInitWithoutContext at 8'
C:\Program
Files\Haskell\ALUT-2.0\ghc-6.6/libHSALUT-2.0.a(Config.o):fake:(.text+
0x19d): undefined reference to `alutExit at 0'
C:\Program
Files\Haskell\ALUT-2.0\ghc-6.6/libHSALUT-2.0.a(Config.o):fake:(.text+
0x1d9): undefined reference to `alutGetError at 0'
C:\Program
Files\Haskell\ALUT-2.0\ghc-6.6/libHSALUT-2.0.a(Config.o):fake:(.text+
0x210): undefined reference to `alutCreateBufferFromFile at 4'
C:\Program
Files\Haskell\ALUT-2.0\ghc-6.6/libHSALUT-2.0.a(Config.o):fake:(.text+
0x2b0): undefined reference to `alutCreateBufferFromFileImage at 8'
C:\Program
Files\Haskell\ALUT-2.0\ghc-6.6/libHSALUT-2.0.a(Config.o):fake:(.text+
0x36d): undefined reference to `alutCreateBufferHelloWorld at 0'
C:\Program
Files\Haskell\ALUT-2.0\ghc-6.6/libHSALUT-2.0.a(Config.o):fake:(.text+
0x3f7): undefined reference to `alutCreateBufferWaveform at 16'
C:\Program
Files\Haskell\ALUT-2.0\ghc-6.6/libHSALUT-2.0.a(Config.o):fake:(.text+
0x584): undefined reference to `alutLoadMemoryFromFile at 16'
C:\Program
Files\Haskell\ALUT-2.0\ghc-6.6/libHSALUT-2.0.a(Config.o):fake:(.text+
0x6b8): undefined reference to `alutLoadMemoryFromFileImage at 20'
C:\Program
Files\Haskell\ALUT-2.0\ghc-6.6/libHSALUT-2.0.a(Config.o):fake:(.text+
0x7e8): undefined reference to `alutLoadMemoryHelloWorld at 12'
C:\Program
Files\Haskell\ALUT-2.0\ghc-6.6/libHSALUT-2.0.a(Config.o):fake:(.text+
0x92f): undefined reference to `alutLoadMemoryWaveform at 28'
C:\Program
Files\Haskell\ALUT-2.0\ghc-6.6/libHSALUT-2.0.a(Config.o):fake:(.text+
0xb2c): undefined reference to `alutGetMIMETypes at 4'
C:\Program
Files\Haskell\ALUT-2.0\ghc-6.6/libHSALUT-2.0.a(Config.o):fake:(.text+
0xbc9): undefined reference to `alutGetMajorVersion at 0'
C:\Program
Files\Haskell\ALUT-2.0\ghc-6.6/libHSALUT-2.0.a(Config.o):fake:(.text+
0xc01): undefined reference to `alutGetMinorVersion at 0'
C:\Program
Files\Haskell\ALUT-2.0\ghc-6.6/libHSALUT-2.0.a(Config.o):fake:(.text+
0xc55): undefined reference to `alutSleep at 4'
C:\Program
Files\Haskell\ALUT-2.0\ghc-6.6/libHSALUT-2.0.a(Config.o):fake:(.text+
0xd89): undefined reference to `alutGetErrorString at 4'
---------------------
--------------------
Nobuhito
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
More information about the Haskell-Cafe
mailing list