🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: alt.os.linux.mandrake
1 messages
1 total messages Started by Carolyn Marenger Fri, 14 Jan 2005 09:19
newbie: compiling with gcc 3.4.1 in Mandrake linux 10.1
#511
Author: Carolyn Marenger
Date: Fri, 14 Jan 2005 09:19
25 lines
2211 bytes
I am hoping someone will tell me what I am doing wrong.  I have a simple
helloworld.cpp that I would like to compile.  I want to figure out what
options I need to select to compile.  There seem to be a few thousand
options to choose from, and I would like the generic basics.  ASCII/ISO C++
would be the ideal compile configuration for me.

When I compile my helloWorld.cpp file, 'gcc helloWorld.cpp I get an error
message reporting that cout is undeclared.  What am I doing wrong?  Any
assistance is appreciated.

In function 'int main(int, char**)'
Error: cout undeclared (first use in this function)
Error: (Each undeclared identifier is reported only once for each function
it appears in.)

-----
// helloWorld.cpp
#include <iostream>

int main(int argc, char *argv[])
{
  cout << "Hello, world!\n";
  return 1;
}
-----
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads