delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/12/01/21:45:13

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> <QMdG9.191876$oRV DOT 178073 AT news04 DOT bloor DOT is DOT net DOT cable DOT rogers DOT com>
NNTP-Posting-Host: 62.252.144.11
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" <den DOT chang AT rogers DOT com> wrote in message news:<QMdG9.191876$oRV DOT 178073 AT news04 DOT bloor DOT is DOT net DOT cable DOT rogers 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.



Program compiles but doesn't output anything the cout statements are
not shwon it just goes onto the next line

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019