delorie.com/archives/browse.cgi | search |
Newsgroups: | comp.os.msdos.djgpp |
From: | Nebu John Mathai <mathai AT ecf DOT toronto DOT edu> |
Subject: | Problem compiling c++ program with djgpp v2.0 |
Sender: | news AT ecf DOT toronto DOT edu (News Administrator) |
Message-ID: | <Pine.SGI.3.91.970101163405.27480B-100000@skule.ecf> |
Date: | Wed, 1 Jan 1997 21:37:13 GMT |
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 <iostream.h> 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.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |