This is the mail archive of the gcc@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]

New to GCC


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


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