tor 2002-10-10 klockan 14.02 skrev Martin Norb�ck:
> How do I go about linking to a static library when using --make?
> 
> If i do
> 
> ghc --make Module libmodulelib.a
> 
> then ghc syas:
> 
> chasing modules from Module,libmodulelib.a and complains about not being
> able to find the _module_ modulelib.a. Likewise on windows, if I do
> 
> ghc --make Module modulelib.dll
> 
> it also complains about not finding the _module_ modulelib.dll.
> 
> If I specify the object files that makes up modulelib then there are no
> complaints, likewise, if I link without --make, ghc uses the library
> just fine.
> 
> Is this the intended behaviour, and if it is, how do I go about linking
> with libraries when using --make?

Thanks for those who replied. I found a solution:

use -optllibmodulelib.a and -optmodulelib.dll and they will be ignored
and just passed on to the linker as they should be.

Regards,

        Martin

Attachment: signature.asc
Description: Detta =?ISO-8859-1?Q?=E4r?= en digitalt signeradmeddelandedel

Reply via email to