New to GCC

jlopes151@comcast.net jlopes151@comcast.net
Sat Aug 14 08:22:00 GMT 2004


Ok after a number of coding years I've gotten around to GCC. I'm compiling a cpp file and find
I can't use "cout" nor "endl".

compile command line:

gcc -c Widgets.cpp 

were a method is to display the name of the widget, 

void Widget::displayName(){
         cout << "Name of widget " << widgetName << endl;
}

I include the iostream header 

the error message claims "cout" is undeclared. 

thanks for the help



More information about the Gcc mailing list