Newsgroups: comp.os.msdos.djgpp From: Nebu John Mathai Subject: Problem compiling c++ program with djgpp v2.0 Sender: news AT ecf DOT toronto DOT edu (News Administrator) Message-ID: Date: Wed, 1 Jan 1997 21:37:13 GMT Content-Type: TEXT/PLAIN; charset=US-ASCII Mime-Version: 1.0 Organization: University of Toronto, Engineering Computing Facility Lines: 19 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp I wrote the following program (C++ as far as I can tell) and tried to compile it with gcc.exe v2.0. I saved the file as 1.cc and issued the command: gcc 1.cc and got an error (listed under the program). #include int main() { cout << "This won't work"; return 0; } I got this error during compilation: 1.cc(.text+0x1e): undefined reference to `cout' 1.cc(.text+0x23): undefined reference to `ostream::operator<<(char const *)' Thanks for your help.