Subject: [everybody] Testing new GCC Date: 29 Dec 2002 17:49:21 -0600 From: Matt Hoosier To: everybody@cis.ksu.edu We are testing a new version of GCC (the default C/C++ compiler on CIS systems). Most programs should work unchanged. Please let us know if there is a problem with a program that used to compile under the old version of GCC (2.8.1) but does not compile under the new version of GCC (3.2.1). We have observed at least one change that needs to be made to old C++ programs: * in programs using standard IO libraries (cin, cout, cerr, etc) by way of the official C++ headers ("#include "), you must now explicitly include the "std" namespace. GCC has dropped its default support for the deprecated automatic inclusion of the "std" namespace. Example: > Old program > ----------- > #include > > int main() { > cout << "hello world" << endl; > return 0; > } > Patched program > --------------- > #include > > using namespace std; > > int main() { > cout << "hello world" << endl; > return 0; > } Thanks, Matt Hoosier CIS Accounts Manager Kansas State University --------------------------------------------------------------------- Name: signature.asc signature.asc Type: application/pgp-signature Description: This is a digitally signed message part