This is the mail archive of the
cygwin-xfree@cygwin.com
mailing list for the Cygwin XFree86 project.
RE: /usr/lib/libXaw.a(Pixmap.o)(.text+0x1d4b):Pixmap.c: undefined reference to `XpmReadFileToPixmap'
- To: "'cygwin-xfree'" <cygwin-xfree at cygwin dot com>
- Subject: RE: /usr/lib/libXaw.a(Pixmap.o)(.text+0x1d4b):Pixmap.c: undefined reference to `XpmReadFileToPixmap'
- From: "Pierre A. Humblet" <Pierre dot Humblet at ieee dot org>
- Date: Thu, 24 May 2001 19:38:28 -0400
At 07:38 PM 5/22/01 -0400, Suhaib Siddiqi wrote:
>Add the -lXpm to your linker please.
>XpmReadFileToPixmap
>^^^ points to what your linker is missing (a libXpm.a). The -lXpm must be
>after -lXaw and before -lX11.
I rely on XawClientLibs defined in cygwin.tmpl as
#define XawClientLibs $(XAWLIB) $(XMULIBONLY) $(XTOOLLIB) $(XLIB) $(XPMLIB)
Note that XPMLIB comes *after* XLIB, contrary to Suhaib's recommendation.
The funny thing is that most other *.tmpl define
#define XawClientLibs $(XAWLIB) $(XMULIBONLY) $(XTOOLLIB) $(XPMLIB) $(XLIB)
It's not that I have a current problem, just curious about what's going on.
Pierre