String problem when compiling with gcc3.0.2 in an Alpha with Tru64

John Love-Jensen eljay@adobe.com
Fri Jan 24 12:52:00 GMT 2003


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



More information about the Gcc-help mailing list