This is the mail archive of the
cygwin-xfree@cygwin.com
mailing list for the Cygwin XFree86 project.
RE: Strange build error (Xlib related)
- To: "'cygwin-xfree at cygwin dot com'" <cygwin-xfree at cygwin dot com>
- Subject: RE: Strange build error (Xlib related)
- From: Suhaib Siddiqi <ssiddiqi at inspirepharm dot com>
- Date: Thu, 9 Aug 2001 20:57:12 -0400
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