[Plib-devel] Linking against current CVS
Brought to you by:
sjbaker
From: Jan R. <slo...@gm...> - 2005-08-24 18:55:50
|
Hello! I just started to write a small test program for the various new methods of puaList (see John's posting). I thought I'd use the pw_pui example as a starting point (with a homebrew makefile). Linking against 1.8.4 works fine as always: jreucker:~/code/puaListTest# make --- Compiling pw_pui.cxx /usr/bin/g++ pw_pui.cxx -o pw_pui.o -c -g3 -Wall -DPU_USE_PW --- Linking ListTest /usr/bin/g++ -lGL -lGLU -L/usr/X11/lib -lm -lplibsg -lplibpuaux -lplibpw -lplibul -lplibfnt -lplibpu pw_pui.o -o ListTest But linking against PLIB from the current CVS (installed in $HOME) results in a bunch of errors (the "local" target adds my $HOME dirs to CFLAGS and LFLAGS): jreucker:~/code/puaListTest# make local --- Linking ListTest (using libs in HOME) /usr/bin/g++ -L/home/jreucker/lib -lGL -lGLU -L/usr/X11/lib -lm -lplibsg -lplibp uaux -lplibpw -lplibul -lplibfnt -lplibpu pw_pui.o -o ListTest pw_pui.o: In function `exFunc()': /home/jreucker/code/puaListTest/pw_pui.cxx:18: undefined reference to `pwCleanup ()' pw_pui.o: In function `mpFunc(int, int)': /home/jreucker/code/puaListTest/pw_pui.cxx:31: undefined reference to `puMouse(i nt, int)' pw_pui.o: In function `msFunc(int, int, int, int)': /home/jreucker/code/puaListTest/pw_pui.cxx:37: undefined reference to `puMouse(i nt, int, int, int)' pw_pui.o: In function `kbFunc(int, int, int, int)': /home/jreucker/code/puaListTest/pw_pui.cxx:43: undefined reference to `puKeyboar d(int, int, int, int)' pw_pui.o: In function `main': /home/jreucker/code/puaListTest/pw_pui.cxx:55: undefined reference to `pwInit(in t, int, int, int, int, char*, int, int)' /home/jreucker/code/puaListTest/pw_pui.cxx:63: undefined reference to `pwSetCall backs(void (*)(int, int, int, int), void (*)(int, int, int, int), void (*)(int, int), void (*)(int, int), void (*)())' /home/jreucker/code/puaListTest/pw_pui.cxx:68: undefined reference to `puDisplay ()' /home/jreucker/code/puaListTest/pw_pui.cxx:69: undefined reference to `pwSwapBuf fers()' pw_pui.o: In function `setLegend': /usr/include/plib/pu.h:721: undefined reference to `puPostRefresh()' pw_pui.o: In function `puOneShot': /usr/include/plib/pu.h:1054: undefined reference to `vtable for puOneShot' pw_pui.o: In function `puInitPW': /usr/include/plib/puPW.h:57: undefined reference to `puSetWindowFuncs(int (*)(), void (*)(int), void (*)(int*, int*), void (*)(int, int))' /usr/include/plib/puPW.h:61: undefined reference to `puRealInit()' pw_pui.o: In function `puButton': /usr/include/plib/pu.h:1032: undefined reference to `puObject::puObject[not-in-c harge](int, int, int, int)' /usr/include/plib/pu.h:1032: undefined reference to `vtable for puButton' pw_pui.o: In function `puGetWindowSizePW': /usr/include/plib/puPW.h:47: undefined reference to `pwGetSize(int*, int*)' pw_pui.o: In function `puSetWindowSizePW': /usr/include/plib/puPW.h:52: undefined reference to `pwSetSize(int, int)' collect2: ld returned 1 exit status make: *** [local] Fehler 1 The system is GNU/Linux 2.6.11 (Debian unstable). 1.8.4 installed as a Debian package, CVS version built with "./configure --prefix=$HOME", "make", "make install". Did I miss anything? Kind regards, Jan R. -- Jan Reucker email: jan dot reucker at web dot de web: http://www.reucker-online.de |