Mail Archives: djgpp/2005/05/03/22:02:23
--part1_1f9.90df4e3.2fa986c8_boundary
Content-Type: multipart/alternative;
boundary="-----------------------------1115172040"
-------------------------------1115172040
Content-Type: text/plain; charset="US-ASCII"
Content-Transfer-Encoding: 7bit
Sorry to be sending this message again. I don't know if I sent it wrong the
first time or not. I did get one response but I didn't understand it, it
didn't really explain anything. If Anyone can help me, I have forwarded my
question again, or If someone could let me know if I am posting this wrong. My
intent is to send it to the newsgroup. Any and all help is appreciated. Thanks
again
-------------------------------1115172040
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.2900.2627" name=3DGENERATOR></HEAD>
<BODY id=3Drole_body style=3D"FONT-SIZE: 12pt; 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=3D3>
<DIV><STRONG>Sorry to be sending this message again. I don't know if I sent=20=
it=20
wrong the first time or not. I did get one response but I didn't=20
understand it, it didn't really explain anything. If Anyone can help m=
e, I=20
have forwarded my question again, or If someone could let me know if I am=20
posting this wrong. My intent is to send it to the newsgroup. Any and all he=
lp=20
is appreciated. Thanks again</STRONG></DIV></FONT></BODY></HTML>
-------------------------------1115172040--
--part1_1f9.90df4e3.2fa986c8_boundary
Content-Type: message/rfc822
Content-Disposition: inline
Return-Path: <lnobody AT delorie DOT com>
Received: from rly-yi02.mx.aol.com (rly-yi02.mail.aol.com [172.18.180.130]) by air-yi02.mail.aol.com (v105.26) with ESMTP id MAILINYI23-7b34271b540108; Fri, 29 Apr 2005 00:17:11 -0400
Received: from delorie.com (delorie.com [207.22.48.162]) by rly-yi02.mx.aol.com (v105.26) with ESMTP id MAILRELAYINYI25-7b34271b540108; Fri, 29 Apr 2005 00:17:05 -0400
Received: (from mail AT localhost)
by delorie.com (8.12.8/8.12.8) id j3T4CI2m012794
for djgpp-list; Fri, 29 Apr 2005 00:12:18 -0400
X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
Received: from imo-d04.mx.aol.com (root AT localhost)
by delorie.com (8.12.8/8.12.8) with SMTP id j3T4CHKc012788
for <djgpp AT delorie DOT com>; Fri, 29 Apr 2005 00:12:17 -0400
Received: from imo-d04.mx.aol.com (imo-d04.mx.aol.com [205.188.157.36])
by delorie.com (antispam)
Received: from DoObiEdu AT aol DOT com
by imo-d04.mx.aol.com (mail_out_v38_r1.7.) id 5.126.5c1c522d (4012)
for <djgpp AT delorie DOT com>; Fri, 29 Apr 2005 00:01:47 -0400 (EDT)
From: DoObiEdu AT aol DOT com
Message-ID: <126 DOT 5c1c522d DOT 2fa30bab AT aol DOT 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
Content-Type: multipart/alternative; boundary="-----------------------------1114747307"
X-Mailer: 9.0 Security Edition for Windows sub 1201
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com
Precedence: bulk
X-AOL-IP: 207.22.48.162
-------------------------------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" bottomMargin=3D7 leftMargin=3D7 topMargin=3D7 rightMargin=3D7><FONT=20=
id=3Drole_document 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. 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> </DIV>
<DIV>C:\djgpp>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.) </DIV>
<DIV> </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. 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> </DIV>
<DIV> </DIV>
<DIV> </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> </DIV>
<DIV>DPMI memory available: 38781 Kb<BR>DPMI swap space available: 19423</DI=
V>
<DIV> </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> </DIV>
<DIV>In=20
config.sys<BR>---------------------------<BR>DEVICE=3DC:\essolo.sys</DIV></F=
ONT></BODY></HTML>
-------------------------------1114747307--
--part1_1f9.90df4e3.2fa986c8_boundary--
- Raw text -