Mail Archives: djgpp/1998/04/28/23:42:20
At 01:09 4/28/1998 +0900, Dan, Ho Jin wrote:
>when i compiled a simple c++ program with djgpp, i got the error
>messages such that
>
>C:\lang\djgpp\work>gcc -lgpp minprint.cpp
>c:/lang/djgpp/tmp\ccdaaaaa(.text+0x1c4):minprint.cc: undefined reference
>
>to `endl(ostream &)'
>c:/lang/djgpp/tmp\ccdaaaaa(.text+0x1cd):minprint.cc: undefined reference
>
>to `cout'
>c:/lang/djgpp/tmp\ccdaaaaa(.text+0x1d2):minprint.cc: undefined reference
>
>to `ostream::operator<<(int)'
>c:/lang/djgpp/tmp\ccdaaaaa(.text+0x1dd):minprint.cc: undefined reference
>
>to `ostream::operator<<(ostream &(*)(ostream ))'
>
>C:\lang\djgpp\work>
>
>i tried compiling with several options, but i always had such
>messages...
Try `gxx minprint.cpp'.
Nate Eldredge
nate AT cartsys DOT com
- Raw text -