From: Ibrahim M. <ib...@ya...> - 2004-03-08 18:53:25
|
Hi, I am trying to compile a project that uses plib, but no use. I get a lot of "... undefined reference to ..." errors. So I tried to compile the examples that came with the plib-doc package, but I am getting the same kind of errors. To make sure that the plib header files were found at compile time, I uninstalled plib and plib-dev. in this case I would get "plib/pu.h file not found" etc... errors. I reinstalled plib and plib-dev. I am back to getting the "... undefined reference to ..." errors. I think that the declerations for these functions are found, but not their definitions. Anyone knows what is going on? Here is my setup: I am using Debian with kernel 2.4.25 and the unstable packages plib1.7c102, plib1.7-dev, and plib-doc (version 1.6). These packages were installed using apt-get. I tried both plib version 1.7 and 1.6, but I am facing the same problem. Now I am using version 1.7. I am also using XFree 4.3 and KDE 3.1.5 I have both gcc 2.95 and 3.0 installed along with g++2.95. I don't know how to check which one is used by make. plib header files are installed in /usr/include/plib/ plib lib files are in /usr/lib/ Here is the output I get when I do a make in the examples' source directory: [...]/plib-doc/src$ make Making all in js make[1]: Entering directory `[...]/plib-doc/src/js' c++ -g -O2 -Wall -L/usr/X11R6/lib -o js_demo js_demo.o -lplibjs -lplibul -ldl js_demo.o: In function `jsJoystick::rawRead(int *, float *)': /usr/include/plib/js.h:557: undefined reference to `jsInit(void)' /usr/include/plib/js.h:702: undefined reference to `ulSetError(ulSeverity, char const *,...)' collect2: ld returned 1 exit status make[1]: *** [js_demo] Error 1 make[1]: Leaving directory `[...]/plib-doc/src/js' make: *** [all-recursive] Error 1 __________________________________ Do you Yahoo!? Yahoo! Search - Find what youre looking for faster http://search.yahoo.com |