public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* gcc ver 3.0.4 problem[s] . .
@ 2002-09-04 14:32 N. Sukumar
  2002-09-05  0:44 ` Joe Buck
  0 siblings, 1 reply; 2+ messages in thread
From: N. Sukumar @ 2002-09-04 14:32 UTC (permalink / raw)
  To: gcc

[-- Attachment #1: Type: text/plain, Size: 1 bytes --]



[-- Attachment #2: posting.txt --]
[-- Type: text/plain, Size: 2602 bytes --]

Hi,

Sorry for the trouble! I saw gcc.gnu.org/gcc-2.0/caveats.html and 
thought of dropping you an e-mail for some much-needed help. Have a
problem on-hand! In a recent upgrade (april) the g++ compiler here
was upgraded to gcc version 3.0.4 (previous version was 2.96 I think)
on a SGI Origin 2000, and now lo and behold my code has one too many
conflicts with the compiler.  A sample of the errors is attached (way
too many for the mind to comprehend); segments of the code have been
written by many diff. folks (in the 90's and 00's) and hence the
syntax variations and conformity to stds is not upto par.  I haven't
used the c++ code in a year so did not realize the compiler change. 
Rather than undertake the onerous task of making the code 3.0.4-compatible
which might take awhile in itself, I was wondering if there is some
option within g++ that can make the code compile per the older version of
gcc or a potential fix for my problem. Need to get some work done in
the next 3 weeks or so before returning to CA and hence wanna find the
shortest route possible for now.  The compiler has been upgraded to
ver 2.96 and hence no traces of 2.96 remain. Program compiled fine with
2.96 and i used it for simulations when I was at princeton in 2000/01.

Any fixes/suggestion/input w'd be greatly appreciated.

Thanks in advance.
-suku.

--------------------------------ERROR LOG ------------------------------------
Compiling Data.C
In file included from ../Libix/ixgmf.H:11,
                 from Data.H:8,
                 from Data.C:1:
../LibTools/Region.H:49: ISO C++ forbids declaration of `set' with no type
../LibTools/Region.H:49: template-id `set<T>' used as a declarator
../LibTools/Region.H:49: parse error before `;' token
../LibTools/Region.H:50: 'rep_type' is used as a type, but is not defined as a 
   type.
../LibTools/Region.H:53: `rep_type' is not a class or namespace
../LibTools/Region.H:53: `const_iterator' is not a class or namespace
../LibTools/Region.H:53: `rep_type' fails to be a typedef or built in type
../LibTools/Region.H:53: ISO C++ forbids declaration of `const_iterator' with 
   no type
../LibTools/Region.H:54: `rep_type' is not a class or namespace
../LibTools/Region.H:54: `const_iterator' is not a class or namespace
../LibTools/Region.H:54: `rep_type' fails to be a typedef or built in type
../LibTools/Region.H:54: ISO C++ forbids declaration of `iterator' with no type

. . . etc etc [host of such errors in the different directories . . .will
. . .          run into pages]

--------------------------------ERROR LOG ------------------------------------

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: gcc ver 3.0.4 problem[s] . .
  2002-09-04 14:32 gcc ver 3.0.4 problem[s] . N. Sukumar
@ 2002-09-05  0:44 ` Joe Buck
  0 siblings, 0 replies; 2+ messages in thread
From: Joe Buck @ 2002-09-05  0:44 UTC (permalink / raw)
  To: N. Sukumar; +Cc: gcc


> Sorry for the trouble! I saw gcc.gnu.org/gcc-2.0/caveats.html and 
> thought of dropping you an e-mail for some much-needed help. Have a
> problem on-hand! In a recent upgrade (april) the g++ compiler here
> was upgraded to gcc version 3.0.4 (previous version was 2.96 I think)
> on a SGI Origin 2000, and now lo and behold my code has one too many
> conflicts with the compiler.

The ISO C++ standard says that the standard classes, such as set<T>,
are in the std:: namespace.  Up until version 3.0, g++ had them in the
global namespace instead.  You need to either change references to
standard template classes like set, to std::set, or use "using"
directives.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-09-05  7:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-04 14:32 gcc ver 3.0.4 problem[s] . N. Sukumar
2002-09-05  0:44 ` Joe Buck

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).