Mail Archives: djgpp/1997/01/08/10:42:17
> Hi,
>
> The Djgpp compiler works for c programs, but doesn't seem to work
> with c++ programs. I downloaded and installed all the files which are said
> to
> be necessary to compile c++ programs.
>
> The following is a gcc.log I got, if you have the compiler worked, please
> help.
> Thanks in advance,
>
> c:/djgpp/tmp\ccdaaaaa(.text+0x1a):ex1.cc: undefined referenced to
> 'endl(ostream &)'
> c:/djgpp/tmp\ccdaaaaa(.text+0x24):ex1.cc: undefined referenced to 'cout'
> c:/djgpp/tmp\ccdaaaaa(.text+0x29):ex1.cc: undefined referenced to
> 'ostream::operator<<(char const *) '
>
> george
> gxu AT earthlink DOT net
> :-)
Try
gxx -o ex1.exe ex1.cc
or, using gcc, tack on a "-liostr". gcc needs to tell the
linker to link in the C++ streams library. gxx does this
automatically.
Regards.
David May, ID Card Administrator
Albuquerque TVI
- Raw text -