This is the mail archive of the
cygwin-xfree@cygwin.com
mailing list for the Cygwin XFree86 project.
Re: Dynamic linking.. or??
- To: Suhaib Siddiqi <ssiddiqi at inspirepharm dot com>
- Subject: Re: Dynamic linking.. or??
- From: Andrew Markebo <flognat at flognat dot myip dot org>
- Date: 23 May 2001 21:07:20 +0200
- Cc: "'cygwin-xfree at sourceware dot cygnus dot com'" <cygwin-xfree at sourceware dot cygnus dot com>
- References: <7F2B9185F0196F44B59990759B91B1C29A6C@ins-exch.inspirepharm.com>
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