Date: Tue, 24 Oct 2000 14:20:27 +0200 (CEST) From: Dieter Demerre X-Sender: dd AT baby DOT siemens DOT ebp DOT ii3 DOT b-rail DOT be To: "'djgpp AT delorie DOT com'" Subject: Re: cout Error In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk -----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 : > <> I did not get your source, but guess it's sth like this: - ------ - ------ 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-----