| delorie.com/archives/browse.cgi | search |
| From: | "Jurre Koning" <jurre AT lx DOT student DOT wau DOT CUT-OUT DOT nl> |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | beginner question |
| Date: | Sat, 31 Jul 1999 15:57:33 +0200 |
| Lines: | 34 |
| X-Newsreader: | Microsoft Outlook Express 4.72.3110.5 |
| X-MimeOLE: | Produced By Microsoft MimeOLE V4.72.3110.3 |
| NNTP-Posting-Host: | flex090.dijkgraaf.wau.nl |
| Message-ID: | <37a300cd@wau.nl> |
| X-Trace: | 31 Jul 1999 15:57:33 +0100, flex090.dijkgraaf.wau.nl |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
| Reply-To: | djgpp AT delorie DOT com |
Sorry I am having a little trouble setting up my DJGPP and i can't find an
answer in the FAQ.
just a one-line output program :
// Print line
#include <iostream.h>
int main()
{
cout << "Tering het werkt!!\n";
return 0; // The end
}
using the command line :
gcc jurre.cpp -o jurre.exe
gives the following error message :
d:/djgpp/tmp\cccitg2h(.text+0x1d):jurre.cpp: undefined reference to 'cout'
d:/djgpp/tmp\cccitg2h(.text+0x22):jurre.cpp: undefined reference to
'ostream::operator<<(char const *)'
... now what did I do wrong ? undefined reference to cout .... you're not
gonna tell me my computer doesn't understand cout << ?!?!?
Thanks in advance,
Jurre
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |