Mail Archives: djgpp/1995/08/01/15:26:00
I am attempting to compile a simple 'hello, world' type program
in C++ using DJGPP v 1.12, with all 4 maintenance releases installed.
based upon the verbose output from the compiler, it appears to be
failing during the link phase with the following errors:
.... undefined reference to cout
....undefined reference to ostream::operator << (char const *)
(the ... is apparently pointing to the location in the source code)
I've included iostream.h, and all I'm doing is attempting to print out a text string.
I've successful
oops - finger trouble...
I've successfully compiled C programs using DJGPP so this has me stumped.
Reading the on-line documentation implies there should be a library
called iolib which doesn't appear to exist in the lib directory (unless
it's a reference to the include file). The problem is not that the
include file cannot be found - I've already encountered that and fixed
it. So... anyone else encounter this?
I am not a C/C++ guru so the solution might be obvious to someone
who is. Thanks in advance.
--
---------------------------------------------------------------------
Michael Wesolowski (mewesolo AT freenet DOT calgary DOT ab DOT ca)
- Raw text -