delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2005/04/29/00:13:33

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
From: DoObiEdu AT aol DOT com
Message-ID: <126.5c1c522d.2fa30bab@aol.com>
Date: Fri, 29 Apr 2005 00:01:47 EDT
Subject: Help! "cout" compile error
To: djgpp AT delorie DOT com
MIME-Version: 1.0
X-Mailer: 9.0 Security Edition for Windows sub 1201
Reply-To: djgpp AT delorie DOT com

-------------------------------1114747307
Content-Type: text/plain; charset="US-ASCII"
Content-Transfer-Encoding: 7bit

Help!! I read the FAQ blah Blah Blah and tried all that jazz I'm sposed to  
do.  That being my disclaimer/shirking-off-of-any-further  
responsibility-of-reading-or-further-and-likely-extensive-research: When I try  to compile "hello 
world" this is the compile error message I get:
 
C:\djgpp>gpp hello.cpp -o hello.exe
hello.cpp: In function 'int main(  )':
hello.cpp:6: error:'cout' undeclared (first use this  function)
hello.cpp:6: error:(Each undeclared identifier is reported only  once for 
each function it appears in.)  
 
All of my files were downloaded from the 'delorie.com\djgpp' site. I found  a 
post from someone else having the same problem but could not find the answer  
to his question. I have included all the required info below.  What do I  do. 
Any and all help is greatly appreciated

Contents of  environ.txt
------------------------------------------
TMP=C:\WINDOWS\TEMP
TEMP=C:\WINDOWS\TEMP
PROMPT=$p$g
winbootdir=C:\WINDOWS
COMSPEC=C:\WINDOWS\COMMAND.COM
PATH=C:\DJGPP\BIM;C:WINDOWS;C:WINDOWS\COMMAND
DJGPP=C:\DJGPP\DJGPP.ENV
windir=C:WINDOWS
BLASTER=A220  I5 D1
CMDLINE=gpp hello.cpp -o hello.exe
 
 
 
Result of Running  Go32-v2
---------------------------------------------
go32/v2 version 2.0  built Dec 24 2001 21:25:02
Usage: go32 coff-image [args]
Rename this to  go32.exe only if you need a go32 that can run v2 
binaries as well as v1  binaries (old makefiles). Put ahead of the 
old go32 in your PATH but do not  delete your old go32 - leave it in 
the PATH after this one. Set  GO32_v2_debug=y in the environment to
get verbose output.
 
DPMI memory available: 38781 Kb
DPMI swap space available: 19423
 
In Autoexec.bat
----------------------
Rem TShoot:
SET  PATH=C:\DJGPP\BIN;%PATH%
Rem TShoot:
SET  DJGPP=C:\DJGPP\DJGPP.ENV
C:\essolo.com
 
In  config.sys
---------------------------
DEVICE=C:\essolo.sys

-------------------------------1114747307
Content-Type: text/html; charset="US-ASCII"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; charset=3DUS-ASCII">
<META content=3D"MSHTML 6.00.2800.1106" name=3DGENERATOR></HEAD>
<BODY id=3Drole_body style=3D"FONT-SIZE: 10pt; COLOR: #000000; FONT-FAMILY:=20=
Arial"=20
bottomMargin=3D7 leftMargin=3D7 topMargin=3D7 rightMargin=3D7><FONT id=3Drol=
e_document=20
face=3DArial color=3D#000000 size=3D2>
<DIV>Help!! I read the FAQ blah Blah Blah and tried all that jazz I'm sposed=
 to=20
do.&nbsp; That being my disclaimer/shirking-off-of-any-further=20
responsibility-of-reading-or-further-and-likely-extensive-research: When I t=
ry=20
to compile "hello world" this is the compile error message I get:</DIV>
<DIV>&nbsp;</DIV>
<DIV>C:\djgpp&gt;gpp hello.cpp -o hello.exe<BR>hello.cpp: In function 'int m=
ain(=20
)':<BR>hello.cpp:6: error:'cout' undeclared (first use this=20
function)<BR>hello.cpp:6: error:(Each undeclared identifier is reported only=
=20
once for each function it appears in.)&nbsp; </DIV>
<DIV>&nbsp;</DIV>
<DIV>All of my files were downloaded from the 'delorie.com\djgpp' site. I fo=
und=20
a post from someone else having the same problem but could not find the answ=
er=20
to his question. I have included all the required info below.&nbsp; What do=20=
I=20
do. Any and all help is greatly appreciated</DIV>
<DIV><BR>Contents of=20
environ.txt<BR>------------------------------------------<BR>TMP=3DC:\WINDOW=
S\TEMP<BR>TEMP=3DC:\WINDOWS\TEMP<BR>PROMPT=3D$p$g<BR>winbootdir=3DC:\WINDOWS=
<BR>COMSPEC=3DC:\WINDOWS\COMMAND.COM<BR>PATH=3DC:\DJGPP\BIM;C:WINDOWS;C:WIND=
OWS\COMMAND<BR>DJGPP=3DC:\DJGPP\DJGPP.ENV<BR>windir=3DC:WINDOWS<BR>BLASTER=
=3DA220=20
I5 D1<BR>CMDLINE=3Dgpp hello.cpp -o hello.exe</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>Result of Running=20
Go32-v2<BR>---------------------------------------------<BR>go32/v2 version=20=
2.0=20
built Dec 24 2001 21:25:02<BR>Usage: go32 coff-image [args]<BR>Rename this t=
o=20
go32.exe only if you need a go32 that can run v2 <BR>binaries as well as v1=20
binaries (old makefiles). Put ahead of the <BR>old go32 in your PATH but do=20=
not=20
delete your old go32 - leave it in <BR>the PATH after this one. Set=20
GO32_v2_debug=3Dy in the environment to<BR>get verbose output.</DIV>
<DIV>&nbsp;</DIV>
<DIV>DPMI memory available: 38781 Kb<BR>DPMI swap space available: 19423</DI=
V>
<DIV>&nbsp;</DIV>
<DIV>In Autoexec.bat<BR>----------------------<BR>Rem TShoot:<BR>SET=20
PATH=3DC:\DJGPP\BIN;%PATH%<BR>Rem TShoot:<BR>SET=20
DJGPP=3DC:\DJGPP\DJGPP.ENV<BR>C:\essolo.com</DIV>
<DIV>&nbsp;</DIV>
<DIV>In=20
config.sys<BR>---------------------------<BR>DEVICE=3DC:\essolo.sys</DIV></F=
ONT></BODY></HTML>

-------------------------------1114747307--

- Raw text -


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