Hello Faizol, On 10/02/2012 04:43 PM, Muhamad Faizol Abd. Halim wrote: > I copied the code from the tutorial on the wiki page; > int main(int argc, char **argv) > { > OSG::osgInit(argc,argv); > > { > int winid = setupGLUT(&argc, argv); > OSG::GLUTWindowRecPtr gwin = OSG::GLUTWindow::create(); > gwin->setGlutId(winid); > gwin->init(); > > scene = createScenegraph(); > > mgr = OSG::SimpleSceneManager::create(); > mgr->setWindow(gwin ); > mgr->setRoot (scene); > mgr->showAll(); > } > > glutMainLoop(); > > return 0; > } > > and here's the output; > /opensg/test/test2.cpp:41: undefined reference to > `OSG::SimpleSceneManager::create()' > collect2: error: ld returned 1 exit status
hmm, that's a very different error now? > the gcc command; > g++ -g -Wall -fPIC -I/usr/local/opensg/include/OpenSG -lOSGBase > -lOSGSystem -lOSGWindowGLUT -lOSGDrawable -lOSGGroup -lOSGState > -lOSGWindowX -ldl -lpthread -lboost_filesystem-mt -lboost_system-mt -lz > -lGL -lGLU -lglut -lXmu -lXi -lX11 test2.cpp -L/usr/local/opensg/lib64 > -lOSGBase -lOSGSystem -lOSGWindowGLUT -lOSGDrawable -lOSGGroup > -lOSGState -lOSGWindowX -ldl -lpthread -lboost_filesystem-mt > -lboost_system-mt -lz -lGL -lGLU -lglut -lXmu -lXi -lX11 -o test2 SimpleSceneManager is in libOSGUtil, you need to link with it, i.e. add a -lOSGUtil to the linker command. Cheers, Carsten ------------------------------------------------------------------------------ Don't let slow site performance ruin your business. Deploy New Relic APM Deploy New Relic app performance management and know exactly what is happening inside your Ruby, Python, PHP, Java, and .NET app Try New Relic at no cost today and get our sweet Data Nerd shirt too! http://p.sf.net/sfu/newrelic-dev2dev _______________________________________________ Opensg-users mailing list Opensg-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/opensg-users