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: Strange build error (Xlib related)




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




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