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 Content-Type: multipart/alternative; boundary="-----------------------------1114747307" 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