OpenInventor & Gnu g++

OpenInventor & Gnu g++

Post by Vignoli Fabi » Thu, 06 Jun 1996 04:00:00



Dear fellows,

I have some problems using gnu g++ ver 2.7.2
and SGI OpenInventor 2.0.
I have a lot of warning like:

compiling with g++ -c -ansi hello.c++

/usr/include/Inventor/nodes/SoCamera.h:51:
        static member function `SoCamera::getFieldDataPtr()' cannot have
`const' method qualifier
/usr/include/Inventor/nodes/SoCamera.h:
        In function `static const class SoFieldData **
SoCamera::getFieldDataPtr()':
/usr/include/Inventor/nodes/SoCamera.h:51:
        warning: return to `const SoFieldData **' from `SoFieldData **'
        adds cv-quals without intervening `const'
/usr/include/Inventor/nodes/SoPerspectiveCamera.h: At top level:
        In file included from hello.c++:6:
/usr/include/Inventor/nodes/SoPerspectiveCamera.h:74:
        warning: `class SoPerspectiveCamera' only defines a private
destructor and has no friends
In file included from /usr_kit/include/Inventor/nodes/SoSeparator.h:31,
                 from hello.c++:7:
/usr/include/Inventor/nodes/SoGroup.h:122:
        warning: `class SoGroup' only defines a private destructor and
has no friends
        In file included from hello.c++:7:
/usr/include/Inventor/nodes/SoSeparator.h:34: `extern' can only be
specified for objects and functions
/usr/include/Inventor/nodes/SoSeparator.h:35: `extern' can only be
specified for objects and functions
/usr/include/Inventor/nodes/SoSeparator.h:128:How to solve or get around
this problem?
        warning: `class SoSeparator' only defines a private destructor
and has no friends
/usr/include/Inventor/sensors/SoDataSensor.h:34: `extern' can only be
specified for objects and function

And then I cannot compile because:

hello.c++: In function `int main(int, char **)':
hello.c++:14: cannot allocate an object of type `SoSeparator'
hello.c++:14:   since the following virtual functions are abstract:
hello.c++:14:   class SoType SoBase::getTypeId() const
hello.c++:16: cannot allocate an object of type `SoMaterial'
hello.c++:16:   since the following virtual functions are abstract:
hello.c++:16:   class SoType SoBase::getTypeId() const
*** Error code 1 (bu21)

Is there any flags that I can set ,just to use g++ as SGI CC?
Can Anyone sove this problem?

Thanks in advance

Fabio Vignoli

 
 
 

OpenInventor & Gnu g++

Post by Kiril Vidimc » Thu, 06 Jun 1996 04:00:00



> I have some problems using gnu g++ ver 2.7.2
> and SGI OpenInventor 2.0.
> I have a lot of warning like:

From the Inventor's FAQ (http://www.sgi.com/Technology/Inventor/FAQ.html#GNU)

Does Inventor work with the GNU C++ compiler?
    No, Inventor requires SGI's C++ compiler. The GNU C++ compiler
    and SGI's C++ compiler produce incompatible code, and Silicon
    Graphics does not ship an Inventor library compatible with GNU C++.

KV
--


http://www.erc.msstate.edu/~vkire        Mississippi State University
P.O. Box 3167, MS State, MS 39762        Engineering Research Center/NSF

 
 
 

OpenInventor & Gnu g++

Post by Christopher Klin » Fri, 07 Jun 1996 04:00:00



> Dear fellows,

> I have some problems using gnu g++ ver 2.7.2
> and SGI OpenInventor 2.0.

Fabio,

You cannot use G++ with Inventor, because the libraries are
incompatible. This information is in the Inventor FAQ that SGI has on
their web site.

Chris

 
 
 

1. Gnu G++ and OpenInventor on SGI

I am looking into the feasability of using Open Inventor with
Gnu G++ (Gnu's C++?).  Apologies in advance if I have failed
to 'rtfm', or if this is the wrong forum for this question.  

I saw a posting here a few days ago indicating that the Open-
Inventor disrtibuted by SGI on their machines works only with
SGI C++, and not Gnu G++.  I assume that this is because the
two compilers name hidden functions and variables differently.

Is there no way then to Use OpenInventor with Gnu G++?
Is a way of constructing a 'glue' interface between the two?
Has someone already done this?

Many thanks for any help!
--
-----------------------------------------------------
David Hessler
San Diego Microscopy and Imaging Resource
University of California, San Diego

2. Seeking Period French 3D architectural objects

3. OpenInventor & G++

4. Wanted to Buy: LightWave v3 or 4 for Intel

5. Compiling Inventor with Gnu g++

6. outline algorithms?

7. How to Compile OpenInventor programs using g++

8. Monzoom/Reflections

9. Using G++ with OpenInventor ?

10. OpenGL for GNU C / GNU C++, and a GUI builder

11. gnu C & 16-color VGA modes

12. Setting up OpenGL & GLUT for GNU C

13. IRIS Explorer & OpenInventor 2.1.1