
16 Jul
2004
16 Jul
'04
4:15 a.m.
and compiled this. So I created a file named project.obj.
We normally use .o rather than .obj; I don't know if using .obj can cause any problems with ghc.
After that I wrote ghc -fffi -c test.lhs. But when I call blah from ghci I get the error message: "test.o unknown symbol '_test'
I think ghc doen't link test.o to projekt.obj. What do I have to do?
Start GHCi with the following command line: ghci -fffi test.lhs project.o GHCi should just load the object file, and you shouldn't have a problem. Cheers, Wolfgang