This is the mail archive of the
cygwin-xfree@cygwin.com
mailing list for the Cygwin XFree86 project.
Re: bbpager
First of all.. the -l switches on the commandline, should be last!!!!
Instead of
c++ -O2 -Wall -I/usr/X11R6/include -s -L/usr/X11R6/lib -lSM -lICE
-lX11 [...] bbpager bbpager.o Image.o LinkedList.o Timer.o main.o
resource.o [...]
It should be:
c++ -O2 -Wall -I/usr/X11R6/include -s [...] bbpager bbpager.o Image.o
LinkedList.o Timer.o main.o resource.o [...] -L/usr/X11R6/lib -lSM
-lICE -lX11
How were this Makefile generated? Try to throw us the complete line
used for linking..
/Andy
/ Socheat Sou <ssou@engin.umich.edu> wrote:
| Has anyone successfully compiled the bbpager tool for Blackbox in cygwin?
| I get numerous "undefined reference to <function names>". Can anyone
| help? Below is a semi-small snippet of the errors.
|
| Thanks,
| Socheat
|
| ---------------------------------------------------------
| $ make
| Making all in data
| make[1]: Entering directory `/tmp/bbpager-0.3.0/data'
| make[1]: Nothing to be done for `all'.
| make[1]: Leaving directory `/tmp/bbpager-0.3.0/data'
| make[1]: Entering directory `/tmp/bbpager-0.3.0'
| c++ -O2 -Wall -I/usr/X11R6/include -s -L/usr/X11R6/lib -lSM -lICE -lX1
| bbpager bbpager.o Image.o LinkedList.o Timer.o main.o resource.o Basereso
| Basewindow.o BaseDisplay.o wminterface.o NETInterface.o -L/usr/X11R6/lib
| bbpager.o(.text+0x6c):bbpager.cc: undefined reference to `XrmInitialize'
| bbpager.o(.text+0x5ab):bbpager.cc: undefined reference to `XUnmapWindow'
| bbpager.o(.text+0x652):bbpager.cc: undefined reference to `XDestroyWindow'
--
The eye of the beholder rests on the beauty!