SGI: Development

Problems compiling C++ and Inventor. HELPPP!!!!

Hi

I'm trying to compile a small program in C++ unsig the Invertor libraries. As a matter of fact, it's the "Hello Cone" program in Chapter 2 of "The Inventor mentor" book.

Here is what I get

limableu 1% CC -o hello hello.cpp
ld32: ERROR 33 : Unresolved text symbol "SoXt::init(const char*,const char*)" -- 1st referenced by hello.o.
Use linker option -v to see when and which objects, archives and dsos are loaded.
ld32: ERROR 33 : Unresolved text symbol "SoSeparator::SoSeparator(void)" -- 1st referenced by hello.o.
Use linker option -v to see when and which objects, archives and dsos are loaded.
ld32: ERROR 33 : Unresolved text symbol "SoPerspectiveCamera::SoPerspectiveCamera(void)" -- 1st referenced by hello.o.
Use linker option -v to see when and which objects, archives and dsos are loaded.
ld32: ERROR 33 : Unresolved text symbol "SoMaterial::SoMaterial(void)" -- 1st referenced by hello.o.
Use linker option -v to see when and which objects, archives and dsos are loaded.
ld32: ERROR 33 : Unresolved text symbol "SoBase::ref(void) const" -- 1st referenced by hello.o.
Use linker option -v to see when and which objects, archives and dsos are loaded.
ld32: ERROR 33 : Unresolved text symbol "SoGroup::addChild(SoNode*)" -- 1st referenced by hello.o.
Use linker option -v to see when and which objects, archives and dsos are loaded.
ld32: ERROR 33 : Unresolved text symbol "SoDirectionalLight::SoDirectionalLight(void)" -- 1st referenced by hello.o.
Use linker option -v to see when and which objects, archives and dsos are loaded.
ld32: ERROR 33 : Unresolved text symbol "SoMFColor::setValue(float,float,float)" -- 1st referenced by hello.o.
Use linker option -v to see when and which objects, archives and dsos are loaded.
ld32: ERROR 33 : Unresolved text symbol "SoCone::SoCone(void)" -- 1st referenced by hello.o.
Use linker option -v to see when and which objects, archives and dsos are loaded.
ld32: ERROR 33 : Unresolved text symbol "SoXtRenderArea::SoXtRenderArea(_WidgetRec*,const char*,int,int,int)" -- 1st referenced by hello.o.
Use linker option -v to see when and which objects, archives and dsos are loaded.
ld32: ERROR 33 : Unresolved text symbol "SoCamera::viewAll(SoNode*,const SbViewportRegion&,float)" -- 1st referenced by hello.o.
Use linker option -v to see when and which objects, archives and dsos are loaded.
ld32: ERROR 33 : Unresolved text symbol "SoXtComponent::setTitle(const char*)" -- 1st referenced by hello.o.
Use linker option -v to see when and which objects, archives and dsos are loaded.
ld32: ERROR 33 : Unresolved text symbol "SoXt::show(_WidgetRec*)" -- 1st referenced by hello.o.
Use linker option -v to see when and which objects, archives and dsos are loaded.
ld32: ERROR 33 : Unresolved text symbol "SoXt::mainLoop(void)" -- 1st referenced by hello.o.
Use linker option -v to see when and which objects, archives and dsos are loaded.
ld32: INFO 152: Output file removed because of error.

Suggestions?

I'm using MIPS Pro 7.4, the Inventor libraries were installed from the CD and seemed to work. I'm working on a O2 workstation running on IRIX.

Thanks
CC -o hello hello.cpp -linventor

or so might help. You may need -lInventorXt and lSgm -lXm -lXt -lX11 as well, and, asl always with linking, order matters. Additionally, you symbols look so totally un-mangled, so maybe you really should try using an actual C++ compiler.
:lol: It worked with CC -o hello hello.cpp -lInventorXt!!! :lol:

Thanks a lot :lol: :D :D