info-inventor-dev
[Top] [All Lists]

Re: g++-compiler

To: info-inventor-dev@xxxxxxxxxxx
Subject: Re: g++-compiler
From: Chris Scharver <scharver@xxxxxxxxxxx>
Date: Mon, 11 Apr 2005 13:59:51 -0500
In-reply-to: <200503110447.j2B4lp5J369835@xxxxxxxxxxxxxxxxxxxx>
References: <200503110447.j2B4lp5J369835@xxxxxxxxxxxxxxxxxxxx>
Sender: info-inventor-dev-bounce@xxxxxxxxxxx
On Mar 10, 2005, at 10:47 PM, Jonathan Lim wrote:

On Wed Mar  9 23:53:20 2005, Kai.Jaensch@xxxxxxx wrote:

can OpenInventor 2.1.5-10 be compiled with g++ (gcc) version 3.3.1 or must I
use gcc 2.96?

Latest source in tree (http://oss.sgi.com/cgi-bin/cvsweb.cgi/inventor/)
compiles with gcc 3.2.2 (IA32) and 3.2.3 (IA64). RPM's yet to be updated.

I'm working on creating a built script for DarwinPorts, and the same problem arises on current versions of MacOS X. I'm running into trig precision errors using the CVS checkout and gcc (GCC) 3.3 20030304 (Apple Computer, Inc. build 1671).

/usr/bin/g++ -D_DOUBLE_MATH_ONLY -I/usr/X11R6/include -I. -I../../lib/database/include -I../../lib/interaction/include -I../../lib/nodekits/include -I../../libSoXt/include -dynamic -fno-common -DIVPREFIX=\"/Volumes/cybertron/Users/Shared/darwinports/dports/ graphics/inventor/work/destroot\" -O -DNDEBUG -c ppp.c++
In file included from /usr/include/math.h:26,
                 from ../../lib/database/include/Inventor/SbLinear.h:74,
                 from ../../lib/database/include/Inventor/SbBox.h:63,
                 from ../../lib/database/src/sb/SbBox.c++:57,
                 from ../../lib/database/src/sb/Sb.c++:55,
                 from ppp.c++:118:
/usr/include/architecture/ppc/math.h:210: error: declaration of C function `
   float acos(float)' conflicts with
/usr/include/architecture/ppc/math.h:209: error: previous declaration `double
   acos(double)' here
/usr/include/architecture/ppc/math.h:213: error: declaration of C function `
   float asin(float)' conflicts with
/usr/include/architecture/ppc/math.h:212: error: previous declaration `double
   asin(double)' here
/usr/include/architecture/ppc/math.h:216: error: declaration of C function `
   float atan(float)' conflicts with
/usr/include/architecture/ppc/math.h:215: error: previous declaration `double
   atan(double)' here
/usr/include/architecture/ppc/math.h:219: error: declaration of C function `
   float atan2(float, float)' conflicts with
/usr/include/architecture/ppc/math.h:218: error: previous declaration `double
   atan2(double, double)' here
/usr/include/architecture/ppc/math.h:222: error: declaration of C function `
   float cos(float)' conflicts with
/usr/include/architecture/ppc/math.h:221: error: previous declaration `double
   cos(double)' here
/usr/include/architecture/ppc/math.h:225: error: declaration of C function `
   float sin(float)' conflicts with
/usr/include/architecture/ppc/math.h:224: error: previous declaration `double
   sin(double)' here
/usr/include/architecture/ppc/math.h:228: error: declaration of C function `
   float tan(float)' conflicts with
/usr/include/architecture/ppc/math.h:227: error: previous declaration `double
   tan(double)' here
/usr/include/architecture/ppc/math.h:300: error: declaration of C function `
   float pow(float, float)' conflicts with
/usr/include/architecture/ppc/math.h:299: error: previous declaration `double
   pow(double, double)' here
/usr/include/architecture/ppc/math.h:303: error: declaration of C function `
   float sqrt(float)' conflicts with
/usr/include/architecture/ppc/math.h:302: error: previous declaration `double
   sqrt(double)' here
gnumake[2]: *** [ppp.o] Error 1
gnumake[1]: *** [install] Error 1
gnumake: *** [install] Error 1
Error: Target com.apple.configure returned: shell command "gnumake install DESTROOT=/Volumes/cybertron/Users/Shared/darwinports/dports/graphics/ inventor/work/destroot" returned error 2

Chris

--
Chris Scharver
Electronic Visualization Laboratory
The University of Illinois at Chicago


<Prev in Thread] Current Thread [Next in Thread>
  • Re: g++-compiler, Chris Scharver <=