| delorie.com/archives/browse.cgi | search |
| From: | "Dennis Chang" <den DOT chang AT rogers DOT com> |
| Newsgroups: | comp.os.msdos.djgpp |
| References: | <8efdb721 DOT 0211300822 DOT 1c328d15 AT posting DOT google DOT com> |
| Subject: | Re: Installing djgpp on windowsxp |
| Lines: | 33 |
| X-Priority: | 3 |
| X-MSMail-Priority: | Normal |
| X-Newsreader: | Microsoft Outlook Express 6.00.2600.0000 |
| X-MIMEOLE: | Produced By Microsoft MimeOLE V6.00.2600.0000 |
| Message-ID: | <QMdG9.191876$oRV.178073@news04.bloor.is.net.cable.rogers.com> |
| Date: | Sun, 01 Dec 2002 01:41:04 GMT |
| NNTP-Posting-Host: | 24.156.127.77 |
| X-Complaints-To: | abuse AT rogers DOT com |
| X-Trace: | news04.bloor.is.net.cable.rogers.com 1038706864 24.156.127.77 (Sat, 30 Nov 2002 20:41:04 EST) |
| NNTP-Posting-Date: | Sat, 30 Nov 2002 20:41:04 EST |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
| Reply-To: | djgpp AT delorie DOT com |
"Jul" <mmjulian AT my-deja DOT com> wrote in message
news:8efdb721 DOT 0211300822 DOT 1c328d15 AT posting DOT google DOT com...
> I have just installed the djgpp gnu c++ compiler on windows xp I set
> the variables to c:\djgpp\djgpp.env in my computer and edited my
> autoexec.bat file to include
> set DJGPP=%djgpprun%\DJGPP\DJGPP.ENV
> set PATH=%djgpprun%\DJGPP\BIN;%PATH%
> call setdjgpp %djgpprun%\djgpp %djgpprun%/djgpp
> On trying to compile a hello world program with this code
> I get 'cout' undeclared (first use this function) what am I doing
> wrong?. This is the code
>
> #include <iostream>
>
> int main()
> {
> cout << "hello world" <<endl;
>
>
> }
>
> I alo get endl undeclared has it been installed properly or are other
> people having problems with djgpp under windowsxp?
Try:
using namespace std;
just below the #include <iostream> line.
Dennis.
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |