Strange build error (Xlib related)

Suhaib Siddiqi ssiddiqi@inspirepharm.com
Thu Aug 9 17:57:00 GMT 2001


If you have noticed the link out put, the Makefile generated by configure
has problems.  It is going to give undefined reference for every exported
symbol.  

c++  -O2 -Wall  -I/usr/X11R6/include -s  -L/usr/X11R6/lib  -lSM -lICE -lX11
-li
pc -o bbkeys  bbkeys.o Image.o LinkedList.o Timer.o stackmenu.o main.o
resource.
o Baseresource.o Basewindow.o BaseDisplay.o Basemenu.o wminterface.o
NETInterfac
e.o -L/usr/X11R6/lib

If you notice all the libraries are before object files, which is wrong.


It should be to resolve symbols.  
I hate those sloppy Makefile.in ;-)

c++  -O2 -Wall  -I/usr/X11R6/include -s  -L/usr/X11R6/lib  -o bbkeys
bbkeys.o Image.o LinkedList.o Timer.o stackmenu.o main.o resource.
o Baseresource.o Basewindow.o BaseDisplay.o Basemenu.o wminterface.o
NETInterfac
e.o -L/usr/X11R6/lib -lSM -lICE -lX11 -lipc

Anyway edit your Makefile to add -lSM -lICE -lX11  after  X_LIBS = -L
/usr/X11R6/lib
and bbkeys_LDADD = -L/usr.X11R6/lib

then type make again and you should be fine.

Suhaib





More information about the Cygwin-xfree mailing list