Mail Archives: djgpp/2002/07/19/09:11:36
Scott Roberts <blackglass AT ntlworld DOT com> wrote:
: 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...
You need to correct your mail/news tool to break lines at ~70 columns.
: 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()
: {
: string s1;
: string s2;
: s1 = "This is a test ";
: s2 = "and so is this ";
: cout << s1;
: cout << s2;
: return 0;
: }
This is an broken C++ program.
: 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:
: 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
Just what I'd expect.
: Here is my environ.txt:
[...]
: DJGPP=C:\DJGPP\DJGPP.ENV
[...]
: Path=C:\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
You are mixing DJGPP with some other compilers. That's not
recommended. Right now DJGPP is in the front of the PATH so it will
probably work. However those Borland tool probably won't work.
You should have one setup with DJGPP, and one for Borland (and yet
another one if you had yet another compiler).
However this doesn't have anything to do with the present problem.
[...]
: I can't catch the output of go32 - v2 as it does not wait for a key stroke to terminate sorry.
Of course you can. Start CMD.EXE and run go32-v2 from there.
: 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).
So this book is outdated in the examples (and in the text I suppose)
as well as in software.
: 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)
No problem. Better too much information than too little.
Right,
MartinS
- Raw text -