Dynamic linking.. or??

Suhaib Siddiqi ssiddiqi@inspirepharm.com
Wed May 23 04:43:00 GMT 2001


> Yep it is in cygwin.rules.. Hmm ahh there we have a dll.. Hmm 
> how does everything work?? 
> 
> Consider me doing 
>  gcc -o myapp myapp.o -lX11 -lXaw
> 
> On solaris it links with libXaw.so, which probably 
> automatically loads libXpm.so during runtime.
> 
> Checking an strace of the above on cygwin shows that it looks 
> for libXaw.dll.a, fails and then loads libXaw.a, thats why it 
^^^^^ huh? Who looks for libXaw.dll.a?  We have no such thing.  
Compiling libXaw.dll is not a good idea due to design of
DLLs which M$ opted.


> wants us to include -lXpm, it _doesn't_ link dynamically!!

You can send a patch if you have an idea how to do it. :-)  For now you must
add
-lXpm -lXaw -lX11 to llinker

Suhaib

> 
> So as developer, compiling apps, can I link dynamic?? (is 
> libXaw.dll the same as libXaw.dll.a?? Suppose that the cygwin 
> FAQ will answer
> that)
> 
>         /Andy
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 



More information about the Cygwin-xfree mailing list