This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
string class header not found
- From: Mike Reedy <mike_reedy at yahoo dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Tue, 17 Dec 2002 14:52:08 -0800 (PST)
- Subject: string class header not found
With new install RedHat 8.0, gcc3.2, the following
fails to compile:
----------
#include <iostream.h>
#include <string>
main()
{
string mys = "This is a test";
cout<<mys<<endl;
cout<<"done"<<endl;
}
----------
Msg: `string' undeclared (first use this function)
----------
Obviously the "string" header file is not found
although it exists at same location as in RedHat 7.x,
at /usr/include/g++-3/string.
Attempted to work around using "-I" directive but that
caused more havoc.
How can I correct this behavior?
Regards,
mike_reedy@yahoo.com
__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com