
Does anyone know how to create .a files for use with packages? I have the following situation:
A directory 'PACK' with a number of ghc-generated object (.o) files.
When I do the following:
$ ghc Test.o PACK/*.o -o Test
everything works fine. However, when I say:
$ cd PACK $ ar -rvs libPack.a *.o $ cd ..
And then do the following:
$ ghc Test.o -LPACK -lPack -o Test
GHC starts complaining about "warning: type and size of dynamic symbol `<ModuleName>_<FunctionName>_closure' are not defined". These are precisely the functions that the module Test is using.
Do you by any chance also have a libPack.so lying around? Cheers, Simon

| Do you by any chance also have a libPack.so lying | around? :-) Of course! <<hits head against wall>> Thanks, Simon. /K
participants (2)
-
Koen Claessen
-
Simon Marlow