This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: String problem when compiling with gcc3.0.2 in an Alpha withTru64
- From: John Love-Jensen <eljay at adobe dot com>
- To: Jorge Andreu García <jandreu at gmv dot es>, <gcc-help at gcc dot gnu dot org>
- Date: Fri, 24 Jan 2003 06:46:11 -0600
- Subject: Re: String problem when compiling with gcc3.0.2 in an Alpha withTru64
Hi Jorge,
After correcting the flaws in your code, I saw no errors (OS X, GCC 3.1):
#include <iostream>
using std::cout;
using std::endl;
#include <string>
using std::string;
int main ()
{
cout << "Hola!" << endl;
string pepe;
pepe = "Hola con string";
cout << pepe << endl;
return 0;
}
--Eljay