[osg-users] ECEF Oriented Compass Implementation

Sebastian Messerschmidt sebastian.messerschmidt at gmx.de
Wed Nov 16 04:23:28 PST 2016

Hi Robert,

> On 16 November 2016 at 11:50, Rambabu Repaka <ramboram488 at 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.

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.


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

More information about the osg-users mailing list