> 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. _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe