Re: [Haskell-cafe] using a win32 dll (Happy too soon)

29 May
2013
29 May
'13
10:04 a.m.
If I compile with ghc --make testGlasPng.hs -lglasPng I get: ..\ld.exe: cannot find -lglasPng. Collect 2: ld returned 1 exit status.
Ld can't find lglasPng (with the l in front, does it trim the l?). Why? Okay I try
ghc --make testGlasPng.hs -L<path to glasPng.dll> I get:
testGlasPng.o: fake: (.text + 0x82) :undefined reference to 'getPngVersion@0'. I think it has found the dll, but it complains the function is not in the dll. But TDump and Dll export viewer say getPngVersion is in the dll.
I think you should use both -L and -l. ghc --make testGlasPng.hs -L/path/to/folder/where/glasPng/is -lglasPng -L should point to the folder, NOT the dll itself. Hope this helps. R.
4375
Age (days ago)
4375
Last active (days ago)
0 comments
1 participants
participants (1)
-
Robert Jakob