Message-ID: <000e01c22e93$300cf160$83ab6bd5@bob> From: "Scott Roberts" To: Subject: Please Help strange error msg's under XP Date: Thu, 18 Jul 2002 20:41:58 +0100 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_000B_01C22E9B.8FE0D400" 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 #include 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 header for the = header for C++ includes, or instead of the deprecated header = . 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
Hi I'm a newbie=20 please help me,
 
I downloaded djgpp using the zip=20 picker 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...
 
To test all was well with the = installation=20 I wrote a very small program (I'm just learning C++)
 
#include = <iostream.h>
#include <string.h>
 
int main()
{
  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=20 messages:
 
C:/dgjpp/lang/cxx-v31/backward/iostream.h(31) =20 in file included from C:/backward/iostream.h:31 from /mystuff/test.cc:1: =
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 = <x> header=20 for the <x.h> header for C++ includes, or <sstream> instead = of the=20 deprecated header <strstream.h> . To disable this warning use=20 -Wno-deprecated.
  In function 'int = main()':
    error: 'string' = undeclared=20 (first use this function)
    error: (each = undeclared=20 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=20 Users
APPDATA=3DC:\Documents and Settings\Scott\Application=20 Data
CLASSPATH=3D"C:\Program=20 Files\Java\j2re1.4.0_01\lib\ext\QTJava.zip"
CLIENTNAME=3DConsole
Co= mmonProgramFiles=3DC:\Program=20 Files\Common=20 Files
COMPUTERNAME=3DBOB
ComSpec=3DC:\WINDOWS\system32\cmd.exe
D= JGPP=3DC:\DJGPP\DJGPP.ENV
HOMEDRIVE=3DC:
HOMEPATH=3D\Documents=20 and=20 Settings\Scott
LOGONSERVER=3D\\BOB
NUMBER_OF_PROCESSORS=3D1
OS=3D= Windows_NT
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
PATHEXT=3D.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.W= SF;.WSH
PROCESSOR_ARCHITECTURE=3Dx86
PROCESSOR_IDENTIFIER=3Dx86=20 Family 15 Model 0 Stepping 10,=20 GenuineIntel
PROCESSOR_LEVEL=3D15
PROCESSOR_REVISION=3D000a
Prog= ramFiles=3DC:\Program=20 Files
PROMPT=3D$P$G
QTJAVA=3D"C:\Program=20 Files\Java\j2re1.4.0_01\lib\ext\QTJava.zip"
SESSIONNAME=3DConsole
S= ystemDrive=3DC:
SystemRoot=3DC:\WINDOWS
TEMP=3DC:\DOCUME~1\Scott\LO= CALS~1\Temp
TMP=3DC:\DOCUME~1\Scott\LOCALS~1\Temp
USERDOMAIN=3DBOB<= BR>USERNAME=3DScott
USERPROFILE=3DC:\Documents=20 and Settings\Scott
windir=3DC:\WINDOWS
_____________________________________________________
 
I can't catch the output of go32 - v2 = as it does=20 not wait for a key stroke to terminate sorry.
 
I am at a loss as to why its happening, = I am=20 learning C++ from a book  (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).
 
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
 
AUTOEXEC.BAT :
 
set djgpptmp=3Dc:
set = djgpprun=3Dc:
set=20 DJGPP=3D%djgpprun%\DJGPP\DJGPP.ENV
set = PATH=3D%djgpprun%\DJGPP\BIN;%PATH%
call=20 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=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.
 
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)
 
My email:  blackglass AT ntlworld DOT com
 
 
------=_NextPart_000_000B_01C22E9B.8FE0D400--