11 Oct
2001
11 Oct
'01
2:15 p.m.
I am still trying to build a Haskell COM component with GHC 5.02 and HDirect (from http://www.galconn.com/~sof/hdirect-0.18-src.tar.gz). I have a problem linking the DLL, I always get this error message: /usr/lib/mingw/libmingw32.a(gccmain.o)(.text+0x88):gccmain.c: multiple definition of `__main' /usr/lib/libm.a(ds00023.o)(.text+0x0): first defined here I am calling ghc with this command:
ghc --mk-dll -o QuiPeX.dll Main.o ParseAndRender.o ParseAndRenderProxy.o ParseAndRenderProxy_stub.o ComDllMain.o dll_stub.o ComDllMain_stub.o -optdll--def -optdllParseAndRender.def -fglasgow-exts -syslib com -package text
By the way, the same error occurs when trying to build the comserv example! Can anybody help me with that? Patrick
9035
Age (days ago)
9035
Last active (days ago)
0 comments
1 participants
participants (1)
-
Lehti, Patrick