Open Inventor build problems



Title: Open Inventor build problems

Hi All,

I am just starting to play around with linux programing and one of the projects that I am working on uses Open Inventor.  I realize that this may not be the best list for this question but here goes.


I started trying to build one of the samples from the Inventor Mentor book and I get the following errors:

bash-2.04$ g++ -I /usr/X11R6/include/ invent.cpp -o invent
 
In file included from /usr/include/math.h:82,
                 from /usr/include/Inventor/SbLinear.h:74,
                 from /usr/include/Inventor/Xt/SoXt.h:61,
                 from invent.cpp:8:
/usr/include/bits/mathcalls.h:54: declaration of C function `float
acos(float)' conflicts
with
/usr/include/bits/mathcalls.h:54: previous declaration `double
acos(double)' here
/usr/include/bits/mathcalls.h:56: declaration of C function `float
asin(float)' conflicts
with
/usr/include/bits/mathcalls.h:56: previous declaration `double
asin(double)' here
/usr/include/bits/mathcalls.h:58: declaration of C function `float
atan(float)' conflicts
with
/usr/include/bits/mathcalls.h:58: previous declaration `double
atan(double)' here
/usr/include/bits/mathcalls.h:60: declaration of C function `float
atan2(float, float)' conflicts with
/usr/include/bits/mathcalls.h:60: previous declaration `double
atan2(double, double)' here/usr/include/bits/mathcalls.h:63: declaration
of C function `float cos(float)' conflicts with
/usr/include/bits/mathcalls.h:63: previous declaration `double
cos(double)' here
/usr/include/bits/mathcalls.h:65: declaration of C function `float
sin(float)' conflicts with
/usr/include/bits/mathcalls.h:65: previous declaration `double
sin(double)' here
/usr/include/bits/mathcalls.h:67: declaration of C function `float
tan(float)' conflicts with
/usr/include/bits/mathcalls.h:67: previous declaration `double
tan(double)' here
/usr/include/bits/mathcalls.h:143: declaration of C function `float
pow(float, float)' conflicts with
/usr/include/bits/mathcalls.h:143: previous declaration `double
pow(double, double)' here
/usr/include/bits/mathcalls.h:146: declaration of C function `float
sqrt(float)' conflicts with
/usr/include/bits/mathcalls.h:146: previous declaration `double
sqrt(double)' here       


I have a feeling that this may have something to do with my machines configuration.  It is running Debian/woody with the latest libc6-dev package.  Is there anything obvious that I am missing??  How can I start to track this down??

Thanks for all your help.

Darin



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]