Article View: gnu.g++.lib.bug
Article #20g++ 1.4 -> gcc 2.2.2 problems
From: Steve Pothoven
Date: Thu, 30 Jul 1992 17:36
Date: Thu, 30 Jul 1992 17:36
35 lines
1997 bytes
1997 bytes
I wrote a fairly large program in g++ 1.4. We are now upgrading our system to use gcc 2.2.2 for our c++ needs. However, when re-compiling my program with gcc 2.2.2 in g++ mode I get a few errors which I don't understand. I don't believe these errors are programming errors since the program compiled and ran fine under g++ 1.4 Here are the errors: I included the header file stream.h in a header file called globals.h (not as bad as it sounds) which was included from header file lex.h which was included from file scan.c, and I received this error. /usr/local/lib/g++-include/streambuf.h: In method `ios::ios (struct streambuf* (= 0 ), class ostream* (= 0 ))': In file included from /usr/local/lib/g++-include/iostream.h:25, from /usr/local/lib/g++-include/stream.h:7, from globals.h:7, from lex.h:2, from scan.c:1: /usr/local/lib/g++-include/streambuf.h:436: warning: declaration of `tie' shadows a member of `this' *** Error code 1 I also received erros like these too. Is there some other header file I now need to include for malloc and MAXINT to exist? lex.c:158: warning: implicit declaration of function `malloc' lex.c:229: `MAXINT' undeclared (first use this function) Finally, while trying to get some other options working I used the gcc option -msvr4 mentioned in the gcc man page, however it gave me this error. Any ideas? cc1plus: Invalid option `svr4' We are still installing and testing gcc 2.2.2 and if any of these errors appear to be a problem with installation or header files, please let me know. Thanks!
Technical Details
Message-ID:
<9207301736.AA09765@uther.Calvin.EDU.Calvin.Edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!uther.calvin.edu!pothovstShow Full Headers
Complete Article Headers
Newsgroups: gnu.g++.lib.bug Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!uther.calvin.edu!pothovst From: pothovst@uther.calvin.edu (Steve Pothoven) Subject: g++ 1.4 -> gcc 2.2.2 problems Message-ID: <9207301736.AA09765@uther.Calvin.EDU.Calvin.Edu> Sender: gnulists@ai.mit.edu Organization: GNUs Not Usenet Distribution: gnu Date: Thu, 30 Jul 1992 17:36:38 GMT Approved: bug-lib-g++@prep.ai.mit.edu Lines: 36