From: Tom Flynn (flynnt++at++engr.sgi.com)
Date: 01/08/2002 14:24:05
This used to be in a FAQ somewhere...when compiling C++ apps one has to
compile with -O. You can compile with -O -g and get most of your debug
symbols (though your inlines will be optimised). This is due to a bug in
g++ that has been rather elusive when trying to track it down.
hope that helps,
tom
On Tue, 8 Jan 2002, Ken Lindsay wrote:
>
> hi
>
> I am only able to compile and link pf apps in release mode.
> if I set CXXFLAGS to include the -g option I get compiler
> errors like this:
>
> libNelAircraft.so: undefined reference to `pfNode::isect(pfSegSet *, pfHit
> ***)'
> ... `pfDCS::setMat(pfMatrix &)'
> ... `pfSCS::getMat(pfMatrix &)'
> ... `pfDCS::setCoord(pfCoord *)'
> ... `pfNode::flatten(int)'
> ... `pfSwitch::setVal(float)'
>
> etc. and looking at the symbols in the libs that make
> sense. but it doesn't make sense that it doesn't work,
> so is there a set of flags or other trick to do here
> to use the /usr/lib/Performer/Debug set of libs?
>
> I'm actually using (in both cases):
> -L/usr/lib/Performer/Debug
> -L/usr/lib/Performer/Debug/libpfdb
>
>
> thanks
>
> ken
>
> _____________________________
> Ken Lindsay ) kl++at++email.arc.nasa.gov
> NASA Ames Research Center ) QSS Group, Inc.
> Bldg 269, Room 281 ) (650) 604 0461 (lab)
> Mail Stop 269-1 ) (650) 604 3594 (fax)
> Moffett Field, CA 94035 ) (650) 604 3181 (vox)
> )______________________
>
> When inlaws are outlawed, only outlaws will have inlaws
>
> -----------------------------------------------------------------------
> List Archives, Info, FAQ: http://www.sgi.com/software/performer/
> Open Development Project: http://oss.sgi.com/projects/performer/
> Submissions: info-performer++at++sgi.com
> Admin. requests: info-performer-request++at++sgi.com
> -----------------------------------------------------------------------
>
-- "Mongooses are famous for their snake-fighting ability, and are almost always victorious because of their speed, agility, and timing and also because of their thick coat."
This archive was generated by hypermail 2b29 : Tue Jan 08 2002 - 14:24:22 PST