This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]