delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/07/18/16:37:38

Message-ID: <000e01c22e93$300cf160$83ab6bd5@bob>
From: "Scott Roberts" <blackglass AT ntlworld DOT com>
To: <djgpp AT delorie DOT com>
Subject: Please Help strange error msg's under XP
Date: Thu, 18 Jul 2002 20:41:58 +0100
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
Reply-To: djgpp AT delorie DOT com

This is a multi-part message in MIME format.

------=_NextPart_000_000B_01C22E9B.8FE0D400
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi I'm a newbie please help me,

I downloaded djgpp using the zip picker selecting windows XP and I =
followed the installation instructions contained in the readme.1st =
document. I'm using the RHIDE IDE, and have no problem getting into =
it...

To test all was well with the installation I wrote a very small program =
(I'm just learning C++)

#include <iostream.h>
#include <string.h>

int main()
{=20
  string s1;
  string s2;

  s1 =3D "This is a test ";
  s2 =3D "and so is this ";

  cout << s1;
  cout << s2;

return 0;
}

when trying to compile it I recieve these error messages:

C:/dgjpp/lang/cxx-v31/backward/iostream.h(31)  in file included from =
C:/backward/iostream.h:31 from /mystuff/test.cc:1:=20
C:/dgjpp/lang/cxx-v31/backward_warning.h(32) error:2: warning: #warning =
this file includes at least one deprecated or antiquated header. Please =
consider using one of the 32 headers found in section 17.4.1.2 of the =
C++ standard. Examples include substituting the <x> header for the <x.h> =
header for C++ includes, or <sstream> instead of the deprecated header =
<strstream.h> . To disable this warning use -Wno-deprecated.
  In function 'int main()':
    error: 'string' undeclared (first use this function)
    error: (each undeclared identifier is reported only once for each =
function it appears in)
error: parse error before ';' token

______________________________________________________

Here is my environ.txt:

ALLUSERSPROFILE=3DC:\Documents and Settings\All Users
APPDATA=3DC:\Documents and Settings\Scott\Application Data
CLASSPATH=3D"C:\Program Files\Java\j2re1.4.0_01\lib\ext\QTJava.zip"
CLIENTNAME=3DConsole
CommonProgramFiles=3DC:\Program Files\Common Files
COMPUTERNAME=3DBOB
ComSpec=3DC:\WINDOWS\system32\cmd.exe
DJGPP=3DC:\DJGPP\DJGPP.ENV
HOMEDRIVE=3DC:
HOMEPATH=3D\Documents and Settings\Scott
LOGONSERVER=3D\\BOB
NUMBER_OF_PROCESSORS=3D1
OS=3DWindows_NT
Path=3DC:\DJGPP\BIN;C:\PROGRA~1\Borland\CBUILD~1\Projects\Bpl;C:\PROGRA~1=
\Borland\CBUILD~1\Bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\=
Wbem;C:\PROGRA~1\Borland\Delphi6\Bin;C:\PROGRA~1\Borland\Delphi6\Projects=
\Bpl
PATHEXT=3D.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
PROCESSOR_ARCHITECTURE=3Dx86
PROCESSOR_IDENTIFIER=3Dx86 Family 15 Model 0 Stepping 10, GenuineIntel
PROCESSOR_LEVEL=3D15
PROCESSOR_REVISION=3D000a
ProgramFiles=3DC:\Program Files
PROMPT=3D$P$G
QTJAVA=3D"C:\Program Files\Java\j2re1.4.0_01\lib\ext\QTJava.zip"
SESSIONNAME=3DConsole
SystemDrive=3DC:
SystemRoot=3DC:\WINDOWS
TEMP=3DC:\DOCUME~1\Scott\LOCALS~1\Temp
TMP=3DC:\DOCUME~1\Scott\LOCALS~1\Temp
USERDOMAIN=3DBOB
USERNAME=3DScott
USERPROFILE=3DC:\Documents and Settings\Scott
windir=3DC:\WINDOWS

_____________________________________________________

I can't catch the output of go32 - v2 as it does not wait for a key =
stroke to terminate sorry.

I am at a loss as to why its happening, I am learning C++ from a book  =
(Learning to program in C++ , by Steve Heller) the book came with a CD =
containing djgpp but it was an older version with instructions on how to =
install and run it on a 9x machine not XP, so I thought it best to =
download a newer version (and installation instructions for XP).

My AUTOEXEC.BAT and CONFIG.SYS had nothing in them as the XP =
installation instructions never asked me to edit them but after I could =
not fix the error messages I followed what the book told me to do for 9x =
in case there was any chance it might help somehow, here they are

AUTOEXEC.BAT :
 =20
set djgpptmp=3Dc:
set djgpprun=3Dc:
set DJGPP=3D%djgpprun%\DJGPP\DJGPP.ENV
set PATH=3D%djgpprun%\DJGPP\BIN;%PATH%
call setdjgpp %djgpprun%\djgpp %djgpprun%/djgpp

______________________________________________________

CONFIG.SYS:

DEVICE=3DC:\DOS\HIMEM.SYS
DOS=3DHIGH
FILES=3D30

_______________________________________________________

I was using Borlands C++ builder 4 to follow the tutorials but I figured =
now I'm defining classes it would be easier to try to get djgpp to work =
on XP so as to follow the book more closely.

Please help me if you can as I would really like to use this compiler, =
thanks for reading and sorry for the length of the message :o)

My email:  blackglass AT ntlworld DOT com

 =20

------=_NextPart_000_000B_01C22E9B.8FE0D400
Content-Type: text/html;
	charset="iso-8859-1"
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=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2716.2200" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi </FONT><FONT face=3DArial =
size=3D2>I'm a newbie=20
please help me,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I downloaded djgpp using the zip=20
picker&nbsp;selecting windows XP and I followed the installation =
instructions=20
contained in the readme.1st document. I'm using the RHIDE IDE, and have =
no=20
problem getting into it...</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>To test all was well with the =
installation=20
I&nbsp;wrote a very small program (I'm just learning C++)</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>#include =
&lt;iostream.h&gt;</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>#include &lt;string.h&gt;</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>int main()</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>{ </FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp; string s1;</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp; string s2;</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp; s1 =3D "This is a test =
";</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp; s2 =3D "and so is this =
";</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp; cout &lt;&lt; s1;</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp; cout &lt;&lt; s2;</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>return 0;</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>}</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>when trying to compile it I recieve =
these error=20
messages:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial =
size=3D2>C:/dgjpp/lang/cxx-v31/backward/iostream.h(31)&nbsp;=20
in file included from C:/backward/iostream.h:31 from /mystuff/test.cc:1: =

</FONT></DIV>
<DIV><FONT face=3DArial =
size=3D2>C:/dgjpp/lang/cxx-v31/backward_warning.h(32)=20
error:2: warning: #warning this file includes at least one deprecated or =

antiquated header. Please consider using one of the 32 headers found in =
section=20
17.4.1.2 of the C++ standard. Examples include substituting the =
&lt;x&gt; header=20
for the &lt;x.h&gt; header for C++ includes, or &lt;sstream&gt; instead =
of the=20
deprecated header &lt;strstream.h&gt; . To disable this warning use=20
-Wno-deprecated.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp; In function 'int =
main()':</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; error: 'string' =
undeclared=20
(first use this function)</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; error: (each =
undeclared=20
identifier is reported only once for each function it appears =
in)</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>error: parse error before ';' =
token</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial=20
size=3D2>______________________________________________________</FONT></D=
IV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Here is my environ.txt:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>ALLUSERSPROFILE=3DC:\Documents and =
Settings\All=20
Users<BR>APPDATA=3DC:\Documents and Settings\Scott\Application=20
Data<BR>CLASSPATH=3D"C:\Program=20
Files\Java\j2re1.4.0_01\lib\ext\QTJava.zip"<BR>CLIENTNAME=3DConsole<BR>Co=
mmonProgramFiles=3DC:\Program=20
Files\Common=20
Files<BR>COMPUTERNAME=3DBOB<BR>ComSpec=3DC:\WINDOWS\system32\cmd.exe<BR>D=
JGPP=3DC:\DJGPP\DJGPP.ENV<BR>HOMEDRIVE=3DC:<BR>HOMEPATH=3D\Documents=20
and=20
Settings\Scott<BR>LOGONSERVER=3D\\BOB<BR>NUMBER_OF_PROCESSORS=3D1<BR>OS=3D=
Windows_NT<BR>Path=3DC:\DJGPP\BIN;C:\PROGRA~1\Borland\CBUILD~1\Projects\B=
pl;C:\PROGRA~1\Borland\CBUILD~1\Bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WIN=
DOWS\System32\Wbem;C:\PROGRA~1\Borland\Delphi6\Bin;C:\PROGRA~1\Borland\De=
lphi6\Projects\Bpl<BR>PATHEXT=3D.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.W=
SF;.WSH<BR>PROCESSOR_ARCHITECTURE=3Dx86<BR>PROCESSOR_IDENTIFIER=3Dx86=20
Family 15 Model 0 Stepping 10,=20
GenuineIntel<BR>PROCESSOR_LEVEL=3D15<BR>PROCESSOR_REVISION=3D000a<BR>Prog=
ramFiles=3DC:\Program=20
Files<BR>PROMPT=3D$P$G<BR>QTJAVA=3D"C:\Program=20
Files\Java\j2re1.4.0_01\lib\ext\QTJava.zip"<BR>SESSIONNAME=3DConsole<BR>S=
ystemDrive=3DC:<BR>SystemRoot=3DC:\WINDOWS<BR>TEMP=3DC:\DOCUME~1\Scott\LO=
CALS~1\Temp<BR>TMP=3DC:\DOCUME~1\Scott\LOCALS~1\Temp<BR>USERDOMAIN=3DBOB<=
BR>USERNAME=3DScott<BR>USERPROFILE=3DC:\Documents=20
and Settings\Scott<BR>windir=3DC:\WINDOWS<BR></FONT><FONT face=3DArial=20
size=3D2></FONT></DIV>
<DIV><FONT face=3DArial=20
size=3D2>_____________________________________________________</DIV></FON=
T>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I can't catch the output of go32 - v2 =
as it does=20
not wait for a key stroke to terminate sorry.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I am at a loss as to why its happening, =
I am=20
learning C++ from a book&nbsp; (Learning to program in C++ , by Steve =
Heller)=20
the book came with a CD containing djgpp but it was an older version =
with=20
instructions on how to install and run it on a 9x machine not XP, so I =
thought=20
it best to download a newer version (and installation instructions for=20
XP).</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>My AUTOEXEC.BAT and CONFIG.SYS had =
nothing in them=20
as the XP installation instructions never asked me to edit them but =
after I=20
could not fix the error messages I followed what the book told me to do =
for 9x=20
in case there was any chance it might help somehow, here they =
are</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>AUTOEXEC.BAT :</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp; </FONT></DIV>
<DIV><FONT face=3DArial size=3D2>set djgpptmp=3Dc:<BR>set =
djgpprun=3Dc:<BR>set=20
DJGPP=3D%djgpprun%\DJGPP\DJGPP.ENV<BR>set =
PATH=3D%djgpprun%\DJGPP\BIN;%PATH%<BR>call=20
setdjgpp %djgpprun%\djgpp %djgpprun%/djgpp</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial=20
size=3D2>______________________________________________________</FONT></D=
IV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>CONFIG.SYS:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial=20
size=3D2>DEVICE=3DC:\DOS\HIMEM.SYS<BR>DOS=3DHIGH<BR>FILES=3D30</FONT></DI=
V>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial=20
size=3D2>_______________________________________________________</FONT></=
DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I was using Borlands C++ builder 4 to =
follow the=20
tutorials but I figured now I'm defining classes it would be easier to =
try to=20
get djgpp to work on XP so as to follow the book more =
closely.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Please help me if you can as I would =
really like to=20
use this compiler, thanks for reading and sorry for the length of the =
message=20
:o)</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>My email:&nbsp; <A=20
href=3D"mailto:blackglass AT ntlworld DOT com">blackglass AT ntlworld DOT com</A></FONT=
></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp; </FONT></DIV></BODY></HTML>

------=_NextPart_000_000B_01C22E9B.8FE0D400--

- Raw text -


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