Gnu G++ and OpenInventor on SGI

Gnu G++ and OpenInventor on SGI

Post by David Hessl » Fri, 03 Mar 1995 09:30:24



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

 
 
 

1. OpenInventor & Gnu g++

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

2. Still Looking for missing plugins - plz help

3. Compiling Inventor with Gnu g++

4. Genesis v2 PRO freezes PS6!!!!

5. How to Compile OpenInventor programs using g++

6. How to make areas transparent?

7. Using G++ with OpenInventor ?

8. Cheap Adobe Font Folio 8 Warez!

9. OpenInventor & G++

10. freeware gs sgi image bug

11. SGI openGL, g++

12. SGI Examples and G++ COMMONDEFS

13. g++ on sgi