Mail Archives: djgpp/1998/07/13/04:20:24
On Sun, 12 Jul 1998, Heikki Leskinen wrote:
> C:\cgg test.cpp -o test.exe
> c:/djgpp/tmp\cccipkzk(.text+0x11) :test.cpp undefined referesce to 'cout'
> c:/djgpp/tmp/ccc1pkzk(.text+0x16) :test.cpp undefined referesce to
> 'ostream::oper
> ator<<(char const *)'
> C:\_
Please read the README.1ST file. It explains that for C++ programs you
need to invoke gxx, not gcc, or mention the C++ libraries on the command
line.
> Using builtin specs.
^^^^^^^^^^^^^^^^^^^
Bad sign. This means you haven't set your DJGPP environment variable
correctly. See README.1ST for details.
It is strange, since your environment listing indicates that DJGPP *is*
set. But AFAIK, using builtin specs is not how GCC should work in DJGPP.
- Raw text -