Hi Robert,

On 16 November 2016 at 11:50, Rambabu Repaka <ramboram...@gmail.com> wrote:
Hi,I got the answer for my question.In the compass node creation sample code 
two errors are there.

First one: replace Compass(); with
compass(void)
{
}
second one: Replace virtual ~Compass() with
Compass::~Compass(void)
{
}

Neither of the above are an error, it's perfectly correct and legal
C++ to not use void.  The OSG uses constructors and destructor’s
without void and doesn't have a problem with users linking to it.

There must be something odd about your particular compile set up or
how you've tweaked the code.  As you've not provided any information
about compilers or linking there is no way others can actually tell
you want the actual problem is.

He was simply missing the implementation of the constructor and destructor, that what caused his linker-errors.
@Rambabu:

This is basic C++-knowledge and I second Robert here: Please try to learn the basics first and learn how to ask questions. This will increase the likelihood of someone actually take care about it.

Cheers
Sebastian



Robert.
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to