Curtis L. Olson wrote:
Hi again,William Earnest writes:> Updated CVS this morning at 8:22 EST, tried compiling a bit later. >Got the following error(s): > >g++ -g -O2 -L/usr/X11R6/lib -o js_demo js_demo.o -lplibsl -lplibsm >-lplibul -lm >js_demo.o: In function `main': >/home/wde/FG/src/Input/js_demo.cxx:21: undefined reference to >`jsJoystick::jsJoystick(int)' >/home/wde/FG/src/Input/js_demo.cxx:84: undefined reference to >`jsJoystick::read(int *, float *)' >collect2: ld returned 1 exit status > > Being inexperienced with C++, I got lost trying to trace the cause. >The only updates that CVS showed were in FlightGear and plib. >Tried to disable just that bit, but ties to other files only made the >problem worse. Suggestions from the experts? BTW, c++ is gcc version >2.96 20000731 (Red Hat Linux 7.2 2.96-112.7.1). There were some updates to plib that are probably causing this. The JS routines were split out into their own library. We probably need to link with -lplibjs if it exists. I haven't updated to the latest plib cvs recently so I haven't looked closely at this. Regards, Curt.
Stuck that lib in the Makefile, and those 2 errors vanished. The new one is:
/usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libplibjs.a(jsLinux.o): In function `jsJoystick::rawRead(int *, float *)':
/home/wde/PL/src/js/jsLinux.cxx:148: undefined reference to `ulSetError(ulSeverity, char const *,...)'
collect2: ld returned 1 exit status
Progress in small increments... Maybe I should try backing off several days on plib until it all syncs up?
--
Bill Earnest wde3@ptd-dot-net Linux Powered Allentown, PA, USA
Computers, like air conditioners, work poorly with Windows open.
_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
