Compiling SpaceNavigator SDK with g++3

Post questions, comments and feedback to our 3Dconnexion UNIX and Linux Development Team.

Moderator: Moderators

Post Reply
dbramsen
Posts: 13
Joined: Wed Feb 11, 2009 9:44 am

Compiling SpaceNavigator SDK with g++3

Post by dbramsen » Thu Feb 12, 2009 10:03 pm

I'd like to integrate the SpaceNavigator into my custom 3D app, but my app uses g++3. I tried compiling the SDK with g++3, but it gives a pile of errors when I change the makefile from cc to g++3. Does anyone know how to compile the SDK with g++3?

dbramsen
Posts: 13
Joined: Wed Feb 11, 2009 9:44 am

Post by dbramsen » Fri Feb 13, 2009 4:14 pm

I was able to resolve this by removing all instances of:

Code: Select all

#ifdef ParameterCheck
#endif
and changing the syntax of the methods from something like:

Code: Select all

int MagellanInit( display, window )
Display *display;
Window window;
{
// method body
}
to:

Code: Select all

int MagellanInit( Display *display, Window window ) 
{
// method body
}

Post Reply