Dynamic linking.. or??

Andrew Markebo flognat@flognat.myip.org
Wed May 23 04:32:00 GMT 2001


(OOPs sorry Suhaib for sending this to you, privately forgot to press
F instead of R, but I managed to find more info now!!!)

/ Suhaib Siddiqi <ssiddiqi@inspirepharm.com> wrote:
[...] 
| > *dig dig dig* Hmm could it be something like 
| > 
| > /usr/X11R6/lib/X11/config
| > cygwin.rules:#define SharedLibXpm YES
| 
| Is this not in cygwin.rules?  Rule to build shared libXpm is already
| In cygwin.rules because libXpm.dll is compiled by default.

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 wants us to
include -lXpm, it _doesn't_ link dynamically!!

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