Re: [info-performer] ;-< 3rd attempt: silly Performer/STL question

New Message Reply Date view Thread view Subject view Author view

From: Michael Logan (mlogan++at++arc.nasa.gov)
Date: 04/11/2003 07:51:47


I'm pretty sure I am using the STL that shipped - /usr/include/CC.
But I didn't install the machine..
BTW, That was only one error out of many.
It must be the flags or the way I'm compiling/linking because
NOTHING stl-based works in this build.

Even if I stick a
"static map<int, float> fakemap;"
in any source file (file local, without using it), it link fails.

If I can fail a smaller example I will send it to you.
If you happen to have the compile/link lines available
 in a shell somewhere after a make, could I see it?

Maybe I should take a performer makefile and alter it
 instead of making one from scratch - checking the
 subtle differences.

here is my compile/link output... I build .a and .so libraries
 for my 6 or 7 libs. Then one main app.

-------------- compile of library file with that unused fakemap
referenced above

 /usr/bin/CC -c -D__cpluscplus -D_cpluscplus -D_NEL_PF_API
-DCOMM_TESTING -DCAMERA_TESTING -I../include -LANG:std -nostdinc
-I/usr/include/CC -I/u
sr/include -mips3 -n32 -O2 -MDupdate Makedepend -o NelGeometryPf.o
NelGeometryPf.cpp
cc-1174 CC: WARNING File = NelGeometryPf.cpp, Line = 512
  The variable "gear" was declared but never referenced.

    static int gear = 0;

------------------- compile/link of main app

--- nelfly ---
        /usr/bin/CC -D__cpluscplus -D_cpluscplus
-D_NEL_PF_API -DCOMM_TESTING -DCAMERA_TESTING -I../include -LANG:std
-nostdinc -I/usr/include/CC
-I/usr/include -mips3 -n32 -O2 -MDupdate Makedepend -o nelfly nelfly.o
../lib/libNelAircraft.a ../lib/libNelGfxSystem.a
../lib/libNelTerrain.a ../lib/libNelGe
ometry.a ../lib/libNelComm.a ../lib/libNelMath.a
-L/usr/lib32/Performer/Debug -lpf -lpfdu -lpfutil
-L/usr/lib32/Performer/Debug/libpfdb -lpfflt -lGL -lGLU -L/u
sr/X11R6/lib -lXext -lX11 -lXmu -lm -ldl

------------------ link error caused by the fakemap

ld32: WARNING 84 : /usr/lib32/libdl.so is not used for resolving any symbol.
ld32: ERROR 33 : Unresolved text symbol
"std::_Rb_tree<int,std::pair<const
int,float>,std::_Select1st<std::pair<const int,float>
>,std::less<int>,std::allocator<
float> >::_M_erase(std::_Rb_tree_node<std::pair<const int,float> >*)" --
1st referenced by ../lib/libNelGeometry.a(NelGeometryPf.o).

thanks,

ml

Goncalo Carvalho wrote:

>Hey,
>
>
>
>>I am having non-stop linking problems with my Performer app and STL
>>on IRIX using C++ 7.3.1.3m and Performer 2.5.
>>
>>
>>
>
>C++ 7.3.1.2m and Performer 2.5
>
>Damn! I've never seen this one before. Are you using the STL that ships
>with the IRIX compiler?
>
>I did a small example and is working fine with SGI STL.
>
>I was wondering if you can share your example. I use STL extensively
>with Performer and I would
>like to know if this is going to bite me later in the future.
>
>Cheers,
>
>Goncalo
>
>
>

-- 
Michael Logan  Task Lead, Visual Cueing & Simulation, (650)-604-4494 
QSS Group, Inc. / NASA Ames Research Center
MS 262-6,Moffett Field,CA, 94035
private: vonlogan++at++rcn.com, http://users.rcn.com/vonlogan/index.htm


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Fri Apr 11 2003 - 07:52:14 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.