This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

gcc ver 3.0.4 problem[s] . .



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 ------------------------------------

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]