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]

Re: Dynamic linking.. or??


Nope. I also tried with 
 #define SharedXReqs $(XTOOLLIB) $(XPMLIB) $(XLIB) $(LDPOSTLIBS)
instead of 
 #define SharedXReqs $(XTOOLLIB) $(XPLIB) $(XLIB) $(LDPOSTLIBS)

The link command is: (Yes I ran xmkmf between the edits of the
tmpl-file), no -lXpm to link with.

rm -f xkeycaps.exe
gcc -o xkeycaps.exe -O2 -fno-strength-reduce -fpcc-struct-return -m486
-Wall -L/usr/X11R6/lib ./xkeycaps.o ./KbdWidget.o ./KeyWidget.o
./info.o ./actions.o ./commands.o ./guess.o ./all-kbds.o -lXaw -lXt
-lSM -lICE -lXmu -lXt -lSM -lICE -lXext -lX11 -lXext -lX11

/usr/X11R6/lib/libXaw.a(Pixmap.o)(.text+0x1d4b):Pixmap.c: undefined
reference to

 `XpmReadFileToPixmap'

collect2: ld returned 1 exit status

Unfortunetaly I don't know much about which files are being read and
so on, but X11.tmpl does 

#if SharedLibXpm
#ifndef SharedXpmRev
#define SharedXpmRev 4.11
#endif
SharedLibReferences(XPM,Xpm,$(XPMLIBSRC),SOXPMREV,SharedXpmRev)
#else
ProjectUnsharedLibReferences(XPM,Xpm,$(XPMLIBSRC),XBuildLibDir)
#endif

Hmm SharedLibReferences, how does that expand?? Ahh well.. :-) 

        /Andy


/ Suhaib Siddiqi <ssiddiqi@inspirepharm.com> wrote:
| Try the following patch to cygwin.tmpl.  I have not tested it.  Let me know
| if it helps.
| 
| Suhaib


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