[osg-users] ECEF Oriented Compass Implementation

Robert Osfield robert.osfield at gmail.com
Wed Nov 16 04:20:26 PST 2016

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.


More information about the osg-users mailing list