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

New Message Reply Date view Thread view Subject view Author view

From: Tom Jolley (jolley++at++fltsim.stl.mo.boeing.com)
Date: 04/14/2003 06:14:51


Hi Michael,

I couldn't tell how you are adding NelGeometryPf.o to libNelGeometry.a.
Are you using CC instead of ar? Try adding the following lines to your
Makefile:

AR = CC
ARFLAGS = -ar -o

Michael Logan wrote:
>
> 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
>


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Mon Apr 14 2003 - 06:16:26 PDT

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