From: mmjulian AT my-deja DOT com (Jul) Newsgroups: comp.os.msdos.djgpp Subject: Re: Installing djgpp on windowsxp Date: 1 Dec 2002 18:44:53 -0800 Organization: http://groups.google.com/ Lines: 36 Message-ID: <8efdb721.0212011844.45c47ca8@posting.google.com> References: <8efdb721 DOT 0211300822 DOT 1c328d15 AT posting DOT google DOT com> NNTP-Posting-Host: 62.252.144.11 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1038797093 9667 127.0.0.1 (2 Dec 2002 02:44:53 GMT) X-Complaints-To: groups-abuse AT google DOT com NNTP-Posting-Date: 2 Dec 2002 02:44:53 GMT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com "Dennis Chang" wrote in message news:... > "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. Program compiles but doesn't output anything the cout statements are not shwon it just goes onto the next line