Building dlls with ghc
Ronald Legere
rjljr2 at yahoo.com
Fri Nov 30 23:42:37 EST 2001
Dear haskellers,
I have been trying to build a dll that has haskell
functions in it, but it doesnt seem to be working in
the latest 5.02.1 windows installer version.
First,
ghc --mk-dll ......
Doesnt do anything since it cannot find dllwrap,
which
doesnt come with the windows installer.
Then, since I have cygwin (ver 1.3.5) i can put
cygwin/bin on my path and try that, but not
suprisingly that fails :) dllwrap runs fine, but then
the linker complains about multiple definitions of
__main, in particular from libm.a(d000027.0) and
libmingw32.a(gccmain.o). Note that I do routinely
link up haskell executables in both dos shells and
cygwin shells with no troubles though.
I suppose that dll building just doesnt work at the
moment, or do I just have a particulalry goofy
situation... or should I just try to build my own
ghc in the cygwin environment so I am not mixing
things??
__________________________________________________
Do You Yahoo!?
Buy the perfect holiday gifts at Yahoo! Shopping.
http://shopping.yahoo.com
More information about the Glasgow-haskell-bugs
mailing list