Packages (again)
Simon Marlow
simonmar@microsoft.com
Mon, 9 Sep 2002 14:35:29 +0100
> Does anyone know how to create .a files for use with
> packages? I have the following situation:
>=20
> A directory 'PACK' with a number of ghc-generated object
> (.o) files.
>=20
> When I do the following:
>=20
> $ ghc Test.o PACK/*.o -o Test
>=20
> everything works fine. However, when I say:
>=20
> $ cd PACK
> $ ar -rvs libPack.a *.o
> $ cd ..
>=20
> And then do the following:
>=20
> $ ghc Test.o -LPACK -lPack -o Test
>=20
> 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