
30 May
2007
30 May
'07
3:09 a.m.
Hello,
On 5/29/07, Brandon S. Allbery KF8NH
On May 29, 2007, at 23:01 , jeff p wrote:
myPrompt> ghc --make -fffi f.hs -l mylib.lib
For historical reasons, you can't have a space between the -l and the library name. It's inserting an empty library name into the link command, which is producing the odd "cannot find" error.
Ok. Now I get another error: myPrompt> ghc --make -fffi f.hs -lmylib.lib ghc --make -fffi f.hs -lmylib.lib Linking f.exe ... d:\ghc\ghc6.6\gcc-lib\ld.exe: cannot find -lmylib.lib collect2: ld returned 1 exit status which is strange because the file mylib.lib is in the same directory as the haskell code. Any thoughts? thanks, Jeff