Using g++ - getting error, but don't know why

Using g++ - getting error, but don't know why

Post by Adam Coute » Sat, 31 Aug 2002 04:43:42



As per my previous post 'Using g++ and cc in conjunction', I am now
attempting to compile my simulation using g++. I am getting the following
output during the compile stage of my simulation build. I have no clue what
the error is and why the build stopped.  Can anyone tell me why I received
the error?

 g++ -o /usr/people/adam/HIDA/SWIFT++_version/obj/hidaObject.o -c
/usr/people/adam/HIDA/SWIFT++_version/src/hidaObject.cpp -O2 -Wall -I/usr/pe
ople/adam/HIDA/SWIFT++_version/include -I/usr/local/STI/GHOST/lib -I/usr/loc
al/STI/GHOST/externalLibs/stl -I/usr/local/STI/GHOST/helperLibs/reset_screen
 -I/usr/local/STI/GHOST/helperLibs/pmouse/inc  -I/usr/local/STI/GHOST/extern
alLibs/collide/SWIFT++_1.1_g++/include  -I/usr/local/STI/GHOST/externalLibs/
GLUIv2.0  -I/usr/local/STI/GHOST/externalLibs/glut-3.7/include
In file included from /usr/local/STI/GHOST/lib/gstErrorHandler.h:28,
                 from /usr/local/STI/GHOST/lib/gstTransformMatrix.h:31,
                 from /usr/local/STI/GHOST/lib/gstTransform.h:30,
                 from
/usr/people/adam/HIDA/SWIFT++_version/include/hidaObject.h:16,
                 from
/usr/people/adam/HIDA/SWIFT++_version/src/hidaObject.cpp:2:
/usr/local/STI/GHOST/lib/gstVector.h: In method `double
gstVector::distance(const gstPoint &)':
/usr/local/STI/GHOST/lib/gstVector.h:183: warning: unused variable `class
gstVector proj2'
In file included from /usr/local/STI/GHOST/lib/gstSpatialObject.h:49,
                 from /usr/local/STI/GHOST/lib/gstPlane.h:37,
                 from /usr/local/STI/GHOST/lib/gstShape.h:46,
                 from /usr/local/STI/GHOST/lib/gstBoundary.h:33,
                 from /usr/local/STI/GHOST/lib/gstBoundaryCube.h:30,
                 from
/usr/people/adam/HIDA/SWIFT++_version/include/GHOST.h:3,
                 from
/usr/people/adam/HIDA/SWIFT++_version/include/coda_math.h:4,
                 from
/usr/people/adam/HIDA/SWIFT++_version/src/hidaObject.cpp:3:
/usr/local/STI/GHOST/lib/gstLine.h: At top level:
/usr/local/STI/GHOST/lib/gstLine.h:149: declaration of `typedef class
gstLineBase gstLine::_Inherited'
/usr/local/STI/GHOST/lib/gstLine.h:41: conflicts with previous declaration
`typedef class gstLineBase gstLine::_Inherited'
In file included from
/usr/people/adam/HIDA/SWIFT++_version/include/GHOST.h:12,
                 from
/usr/people/adam/HIDA/SWIFT++_version/include/coda_math.h:4,
                 from
/usr/people/adam/HIDA/SWIFT++_version/src/hidaObject.cpp:3:
/usr/local/STI/GHOST/lib/gstScene.h: In method `void gstScene::lock()':
/usr/local/STI/GHOST/lib/gstScene.h:60: implicit declaration of function
`int Sleep(...)'
In file included from /usr/local/STI/GHOST/externalLibs/stl/hash_map.h:31,
                 from /usr/local/STI/GHOST/lib/gstVertex.h:25,
                 from
/usr/people/adam/HIDA/SWIFT++_version/include/GHOST.h:16,
                 from
/usr/people/adam/HIDA/SWIFT++_version/include/coda_math.h:4,
                 from
/usr/people/adam/HIDA/SWIFT++_version/src/hidaObject.cpp:3:
/usr/local/STI/GHOST/externalLibs/stl/stl_hashtable.h: At top level:
/usr/local/STI/GHOST/externalLibs/stl/stl_hashtable.h:150: warning: decimal
integer constant is so large that it is unsigned
/usr/local/STI/GHOST/externalLibs/stl/stl_hashtable.h:150: warning: decimal
integer constant is so large that it is unsigned
/usr/local/STI/GHOST/lib/gstErrorHandler.h:47: warning: `gstBoolean
printErrorMessage' defined but not used
/usr/people/adam/HIDA/SWIFT++_version/src/hidaObject.cpp:15: warning: `int
number_created' defined but not used
*** Error code 1 (bu21)

I apologize if I am posting in the wrong group.

Thanks in advance for the help,
Adam

 
 
 

Using g++ - getting error, but don't know why

Post by Igmar Palsenber » Sat, 31 Aug 2002 05:22:49


Quote:> Can anyone tell me why I received the error?

<snip>

Quote:> /usr/people/adam/HIDA/SWIFT++_version/include/coda_math.h:4,
>                  from
> /usr/people/adam/HIDA/SWIFT++_version/src/hidaObject.cpp:3:
> /usr/local/STI/GHOST/lib/gstLine.h: At top level:
> /usr/local/STI/GHOST/lib/gstLine.h:149: declaration of `typedef class
> gstLineBase gstLine::_Inherited'
> /usr/local/STI/GHOST/lib/gstLine.h:41: conflicts with previous declaration
> `typedef class gstLineBase gstLine::_Inherited'

You defined class gstLineBase multiple times, and those declerations
where not equal.

Without the actual source files it's hard to tell how to fix this.

Quote:> *** Error code 1 (bu21)

> I apologize if I am posting in the wrong group.

> Thanks in advance for the help,
> Adam

        Igmar

 
 
 

1. Windows for people who don't want to know why it doesn't work?

Just saw this article in the Inquirer.

http://www.theinquirer.net/15060201.htm

The part of one of Peter K.'s sig line in the subject was always one of
my favourites, but doesn't the following just cry out for *some*
explanation?

http://support.microsoft.com/search/preview.aspx?scid=kb;en-us;Q318159

My Paraphrase: Well, something *will* crash - they say 'when' not 'if',
and take your registry with it, even a (fault in a) user-mode program.
The only fix we're giving you now is to redo your registry when you
restart. We don't have a permanent fix yet, but if you call in with this
"kbbug", we'll refund your support call costs - maybe.

Now, I may not understand all my seg faults or Kernel Panics under Linux
- and it's usually because I'm trying something new, but I get a pretty
good idea where the problem is, usually.

Regards,
Wei Shun

--
change to leews to mail

2. iptables: port forwarding and hardware router

3. I don't know why I can't overwrite by Vi?

4. Intel IXP1200 and Linux

5. Named quits - don't know why

6. problem with WindowMaker

7. Network install fails on tftp, don't know why

8. Suggestion: don't compile some modules

9. sshd cored on me ... but I don't know why.

10. kernel panic, 2.4.7 (Redhat 7.2) and i don't know why

11. it works but I don't know why..........

12. Fixed problem, but, don't know why it works!

13. I don't know why