Mail Archives: djgpp/1998/10/13/04:42:37
Angelo wrote:
> ok, I went through the install procedure, I added all the lines to my
> autoexec.bat and config.sys, (set TEMPDIR, set DJGPP, set LFN, etc).
> When I try to compile anything with gcc and athe program includes
> iostream.h I get an error message like this:
> c:\temp\ccci40xl(.text+0x19):new.cc: undefined reference to 'cout'
> c:\temp\ccci40xl(.text+0x1e):new.cc: undefined reference to
> 'ostream::operator<<'
> now I checked the faq's and everything appears to be ok, all the
> environment variables, and I am using the proper downloads.
You should call C++ compiler using gxx instead gcc. It passes all
needed libraries for C++. Or pass -lstdcxx to gcc by self. For example:
gcc -c sample.cc -o sample.exe -lstdcxx
Best regards,
Alexander Bokovoy, <bokovoy AT bspu DOT unibel DOT by>
= Linux ==============================================================
Though it is always possible to have a look at the world through the
Windows, people usually prefer not only to look but live in it too.
============================================================== Linux =
- Raw text -