[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Bug or feature change
From: |
Durtschi, Larry |
Subject: |
Bug or feature change |
Date: |
Mon, 27 Jan 2003 17:23:50 -0600 |
I have the following simplified sample code that worked fine with GNU 2.96
(IA64 version)
*********************
#include <string>
main()
{
const string str = "this is a test";
cout << "here is str " << str << "\n";
}
*********************
I compiled it with g++ str.cc -o str and on GNU 2.96 this was okay.
When I try to compile the same code on the GNU 3.2 (IA64) compiler I get
the following error messages
******
str.cc: In function `int main()':
str.cc:5: ISO C++ forbids declaration of `string' with no type
str.cc:5: uninitialized const `string'
str.cc:5: parse error before `=' token
str.cc:7: `cout' undeclared (first use this function)
str.cc:7: (Each undeclared identifier is reported only once for each
function
it appears in.)
str.cc:7: `str' undeclared (first use this function)
I have a lot of experience at C but am relatively new at C++ . This is a
simple sample of errors I am getting from porting over 2000 source files to
a new OS. Can anyone point me to what is causing this problem and what I
can do to resolve the issue.
Thank you,
- Bug or feature change,
Durtschi, Larry <=