Ron, Thanks, adding -lplipul made the code build properly.
On Fri, May 30, 2008 at 2:10 AM, Ron Jensen <[EMAIL PROTECTED]> wrote: > On Fri, 2008-05-30 at 00:38 -0400, cory barton wrote: >> Thanks for the tip. You were right, I was not using the simgear libs. >> I have had some improvement after adding more libraries to the build command. >> >> Here is the current statement, and the errors I am getting: >> g++ -Wall "softSim.cpp" -lglut -lsgio -lsgserial -lsgdebug -lplibnet >> -o "softSim" (in directory: /home/cory/trunk/softSim) >> /usr/lib/gcc/i486-linux-gnu/4.2.3/../../../../lib/libplibnet.so: >> undefined reference to `ulSetError(ulSeverity, char const*, ...)' >> /usr/lib/gcc/i486-linux-gnu/4.2.3/../../../../lib/libplibnet.so: >> undefined reference to `ulSetError(ulSeverity, char const*, ...)' >> Compilation failed. >> >> I tried adding -lplibfnt but that makes no difference, and if I add >> -lplibpu then I get a lot more undefined reference errors. >> >> I am kind of lost here, and do not know how to troubleshoot further, >> when I google "undefined reference to `ulSetError(ulSeverity, char >> const*, ...)" or the other undefined reference errors, I end up >> finding posts on this list, usually about trouble building flightgear. >> >> If you have any more nuggets of wisdom, please let me know, I am gonna >> sleep on it, then keep poking at it in the morning. >> >> Thanks, >> >> Cory > > There is an art to including simgear libraries under debian/ubuntu... > > You have: undefined reference to ulSetError > > Simgear libraries start with SG, so lets blame plib. > > $grep ulSetError /usr/lib/local/libplib*so > Binary file /usr/lib/libplibfnt.so matches > Binary file /usr/lib/libplibjs.so matches > Binary file /usr/lib/libplibnet.so matches > Binary file /usr/lib/libplibpsl.so matches > Binary file /usr/lib/libplibpu.so matches > Binary file /usr/lib/libplibpuaux.so matches > Binary file /usr/lib/libplibsg.so matches > Binary file /usr/lib/libplibsl.so matches > Binary file /usr/lib/libplibssg.so matches > Binary file /usr/lib/libplibssgaux.so matches > Binary file /usr/lib/libplibul.so matches > > > A long list of suspects... since the function starts with ul, I would > try -lplibul > > > Good luck > Ron > > who insists (for some silly reason) in building flightgear with shared > libraries (the Debian way) > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Flightgear-devel mailing list > Flightgear-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/flightgear-devel > ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel