Mail Archives: djgpp/1999/04/25/05:17:26
On Sat, 24 Apr 1999, jj wrote:
> D:\DJGPP>gcc -o hello.exe hello.cpp
> d:/djgpp/tmp\cccimutb(.text+0x11):hello.cpp: undefined reference to `cout'
> d:/djgpp/tmp\cccimutb(.text+0x16):hello.cpp: undefined reference to
> `ostream::o
> erator<<(char const *)'
Both readme.1st and the FAQ (the latter does it right at its
beginning) explain that to build C++ programs you need to use gxx
instead of gcc, like this:
gxx -o hello.exe hello.cpp
Please try that, and if it doesn't work as well, post any error
message(s) this command produces.
- Raw text -