Hello Faizol,

On 10/02/2012 05:28 PM, Muhamad Faizol Abd. Halim wrote:
> sorry, I was too fast. The changes I did to the code resulted in
> segmentation fault. Anyway, back to the topic;
>
> this is the compile output;
> /usr/local/include/OpenSG/OSGSimpleSceneManager.h:163:5: error:
> ‘OSG::SimpleSceneManager::SimpleSceneManager()’ is protected
> test.cpp:46:19: error: within this context

yes, the code snippets on the tutorial pages are not quite in sync with 
the actual code :(
Full versions of the code are in the OpenSG source tree in: 
Examples/Tutorial/
I just verified that these build for me (to have them build as part of 
an OpenSG build pass -DOSGBUILD_EXAMPLES_TUTORIAL=ON on the cmake 
command line).
The main change is that nowadays SimpleSceneManager is ref counted and 
must be created using the static create() member function and a 
SimpleSceneManagerRefPtr must be used to hold it.

If you'd like to help out with updating the code snippets on the 
tutorial pages so that they match reality again, we'd appreciate the 
help. Send me a mail (off-list if you like: carsten_neum...@gmx.net) 
with the user name you want to use for the wiki and I'll create an 
account for you.

        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

Reply via email to