Mail Archives: djgpp/2000/10/24/13:15:57
-----BEGIN PGP SIGNED MESSAGE-----
On Mon, 23 Oct 2000, Chaban, Jennifer L wrote:
> Hi! I just downloaded DJGPP and I am having a problem with compiling a test
> program. This is what the error says:
>
> c:/djgpp/tmp\ccY6QHiP.o(.text+0x1f):world.cc: undefined reference to 'cout'
> c:/djgpp/tmp\ccY6QHiP.o(.text+0x24):world.cc: undefined reference to
> 'ostream::operator<<(char const *)'
> collect2: 1d returned 1 exit status
>
> Here is my code :
> <<world.cc>>
I did not get your source, but guess it's sth like this:
- ---<snip>---
- ---</snip>---
Your compiler probably interpreted your code as c-code (not c++ but <<
directives, cout stream etc. are c++). you could try
# gpp world.cc -o world.exe
If this doesn't work, then maybe you have not installed gpp ? or gpplib or
sth like that.
******* Groetjes vanwege ***** Greetings From *******
Dieter Demerre - http://www.angelfire.com/de/ddemerre
ddemerre AT acm DOT org - ext DOT dieter DOT demerre AT siemens DOT be
Although this private and confidential e-mail has been sent
to you through a personal Siemens account, it does NOT
represent any official opinion of Siemens.
If you are not the intended recipient of this e-mail and
have received it in error, please notify the sender by
replying with 'received in error' as the subject and then
delete it from your mailbox.
-----BEGIN PGP SIGNATURE-----
Version: PGP 6.5.8
iQCVAwUBOfV+ka5coohL2ygZAQHQKQP/TMJnz5WSg8BpWWFf6TXcYhEPUV3yl8j3
r40b2/VyZERE2xVOqlQXvzfWsOSLc4A6AYjyzLi3UQ5YblFs/zbWHlBhWvl/DhXU
I3yCFGKLImp7w3uFoyeENzoez+1jDM+RuxoDyRN26RAIteYY4qlZhLcX1am0Y6Ga
/EGzP8qw7d8=
=xBks
-----END PGP SIGNATURE-----
- Raw text -