Mail Archives: djgpp/1998/03/16/20:45:18
It's a C++ thing. cout is a special object that is native to C++. GCC only links
in C things. If you want C++ things like streams, then change your command line:
C:\DJGPP\MYPROGS>gcc test.cc -o test.exe -lgpp -lstdcx
or
C:\DJGPP\MYPROGS>gxx test.cc -o test.exe
-l as in link. The first one is usually enough, stdcx is several other things
inculded in C++. I just use gxx if I am going to use these things. It's easier.
--
"DeHackEd"
EMail address not given out due to low-life spammers.
Very funny Scotty. Now beam down my clothes.
- Raw text -