Hi,

Thanks for the reply.

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

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

Best regards,
Faizol


On Wed, Oct 3, 2012 at 5:19 AM, Carsten Neumann <carsten_neum...@gmx.net>wrote:

>         Hello,
>
> On 10/02/2012 04:01 PM, Muhamad Faizol Abd. Halim wrote:
> >   I am very new to OpenSG and been trying to compile the first tutorial
> > with the new gcc. Having a small problem though;
>
> wrt. your subject line: OpenSG is written in C++98/C++03 (modulo bugs ;)
> ). I'm not familiar enough with the C++11 standard, but if there are
> cases where it introduces changes to the language that may require
> additions/modifications to existing code, those are probably missing.
>
> >   OSGSimpleSceneManager.h:163:5: error:
> > ‘OSG::SimpleSceneManager::SimpleSceneManager()’ is protected
> >
> >   Any pointers and what to change?
>
> hmm, that default c'tor is intentionally protected. Can you post the
> complete error message please, so we have the context of where this
> message comes from?
>
>         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
>
------------------------------------------------------------------------------
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

Reply via email to