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

Pierre A. Humblet Pierre.Humblet@ieee.org
Thu May 24 16:37:00 GMT 2001


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



More information about the Cygwin-xfree mailing list