From: "Dennis Chang" 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: 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" 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 > > int main() > { > cout << "hello world" < > > } > > 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 line. Dennis.