This is the mail archive of the cygwin-xfree@cygwin.com mailing list for the Cygwin XFree86 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Dynamic linking.. or??


(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












Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]