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: /usr/lib/libXaw.a(Pixmap.o)(.text+0x1d4b):Pixmap.c: undefined reference to `XpmReadFileToPixmap'


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


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