Mail Archives: djgpp/2000/05/09/07:33:56
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
------_=_NextPart_001_01BFB9A6.4FF9CC46
Content-Type: text/plain;
charset="iso-8859-1"
HI
First apologies for mailing the gcc mailing list - sorry!
Second apologies for another mail about the C++ headers, you look like you
have seen a few.
I've only just come across DJGPP and have just installed 2.95, I'm having
trouble with headers in C++ (headers for C source are fine). I've read
quite a few notes and FAQs etc about the C++ headers but I am still having
trouble. Following is the output from serveral commands so you can see the
state of the system I'm using. All I want (for now) is the ability to
compile and link C/C++ programs on the command line to create executables,
as I said the C stuff seems OK (using gcc -Wall file.c -o file.exe) and the
long filenames seem OK. One thing I noticed is the forward slashes in the
path to the header after I run gxx, would this make a difference?
C:\mjb\djgpp>ver
Windows NT Version 4.0
----------------------------------------------------------------------------
------------------------------------------------
C:\mjb\djgpp>go32-v2
go32/v2 version 2.0 built Dec 24 1999 17:46:57
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: 82693 Kb
DPMI swap space available: 0 Kb
----------------------------------------------------------------------------
------------------------------------------------
C:\mjb\djgpp>set|grep DJG
DJGPP=c:\mjb\djgpp\djgpp.env
----------------------------------------------------------------------------
------------------------------------------------
C:\mjb\djgpp>path
PATH=c:\mjb\bin;C:\WINNT\system32;C:\WINNT;d:\programs\toolmaster\bin;d:\pro
gram
s\toolmaster\bin\winnt;d:\programs\temp\bin;d:\programs\temp\bin\winnt;.;D:\
Java
\SDK\1_2_2\bin;D:\Poet\bin;d:\programs\VisualCafe\BIN;d:\programs\VisualCafe
\JAV
A\BIN;c:\mjb\djgpp\bin;
----------------------------------------------------------------------------
------------------------------------------------
C:\mjb\djgpp\lang\cxx>dir get*.h
Volume in drive C has no label.
Volume Serial Number is 07CF-0208
Directory of C:\mjb\djgpp\lang\cxx
01/14/00 01:02p 471 getpagesize.h
----------------------------------------------------------------------------
------------------------------------------------
C:\mjb\prg\cpp>type chkbld.cpp
#include <iostream.h>
int main()
{
cout << "Hello world - test build" << endl;
return 0;
}
----------------------------------------------------------------------------
------------------------------------------------
C:\mjb\prg\cpp>gxx -Wall chkbld.cpp -o chkbld.exe
In file included from chkbld.cpp:1:
c:/mjb/djgpp/lang/cxx/iostream.h:31: streambuf.h: No such file or directory
(ENO
ENT)
----------------------------------------------------------------------------
------------------------------------------------
C:\mjb\djgpp>ver
Windows NT Version 4.0
----------------------------------------------------------------------------
------------------------------------------------
C:\mjb\djgpp>go32-v2
go32/v2 version 2.0 built Dec 24 1999 17:46:57
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: 82693 Kb
DPMI swap space available: 0 Kb
----------------------------------------------------------------------------
------------------------------------------------
C:\mjb\djgpp>set|grep DJG
DJGPP=c:\mjb\djgpp\djgpp.env
----------------------------------------------------------------------------
------------------------------------------------
C:\mjb\djgpp>path
PATH=c:\mjb\bin;C:\WINNT\system32;C:\WINNT;d:\programs\toolmaster\bin;d:\pro
gram
s\toolmaster\bin\winnt;d:\programs\temp\bin;d:\programs\temp\bin\winnt;.;D:\
Java
\SDK\1_2_2\bin;D:\Poet\bin;d:\programs\VisualCafe\BIN;d:\programs\VisualCafe
\JAV
A\BIN;c:\mjb\djgpp\bin;
----------------------------------------------------------------------------
------------------------------------------------
C:\mjb\djgpp\lang\cxx>dir get*.h
Volume in drive C has no label.
Volume Serial Number is 07CF-0208
Directory of C:\mjb\djgpp\lang\cxx
01/14/00 01:02p 471 getpagesize.h
----------------------------------------------------------------------------
------------------------------------------------
C:\mjb\prg\cpp>type chkbld.cpp
#include <iostream.h>
int main()
{
cout << "Hello world - test build" << endl;
return 0;
}
----------------------------------------------------------------------------
------------------------------------------------
C:\mjb\prg\cpp>gxx -Wall chkbld.cpp -o chkbld.exe
In file included from chkbld.cpp:1:
c:/mjb/djgpp/lang/cxx/iostream.h:31: streambuf.h: No such file or directory
(ENO
ENT)
----------------------------------------------------------------------------
------------------------------------------------
C:\mjb\djgpp\lang\cxx>dir *stream*.h
Volume in drive C has no label.
Volume Serial Number is 07CF-0208
Directory of C:\mjb\djgpp\lang\cxx
01/14/00 12:56p 1,165 _iostreamP.h
01/14/00 12:56p 3,475 fstream.h
01/14/00 12:56p 2,925 indstream.h
01/14/00 12:56p 9,675 iostream.h
01/14/00 12:56p 1,142 istream.h
01/14/00 12:56p 1,142 ostream.h
01/14/00 12:56p 5,431 parsestream.h
01/14/00 12:57p 2,291 pfstream.h
01/14/00 12:57p 2,602 stdiostream.h
01/14/00 12:57p 2,023 stream.h
01/14/00 12:57p 17,057 streambuf.h
01/14/00 12:57p 4,314 strstream.h
------_=_NextPart_001_01BFB9A6.4FF9CC46
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2651.65">
<TITLE>streambuf.h again.</TITLE>
</HEAD>
<BODY>
<P><FONT SIZE=3D2 FACE=3D"Arial">HI</FONT>
</P>
<P><FONT SIZE=3D2 FACE=3D"Arial">First apologies for mailing the gcc =
mailing list - sorry!</FONT>
</P>
<P><FONT SIZE=3D2 FACE=3D"Arial">Second apologies for another mail =
about the C++ headers, you look like you have seen a few.</FONT>
</P>
<P><FONT SIZE=3D2 FACE=3D"Arial">I've only just come across DJGPP and =
have just installed 2.95, I'm having trouble with headers in C++ =
(headers for C source are fine). I've read quite a few notes and =
FAQs etc about the C++ headers but I am still having trouble. =
Following is the output from serveral commands so you can see the state =
of the system I'm using. All I want (for now) is the ability to =
compile and link C/C++ programs on the command line to create =
executables, as I said the C stuff seems OK (using gcc -Wall file.c -o =
file.exe) and the long filenames seem OK. One thing I noticed is =
the forward slashes in the path to the header after I run gxx, would =
this make a difference?</FONT></P>
<P><FONT SIZE=3D2 FACE=3D"Times New Roman">C:\mjb\djgpp>ver</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Times New Roman">Windows NT Version =
4.0</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Times New =
Roman">-----------------------------------------------------------------=
-----------------------------------------------------------</FONT></P>
<P><FONT SIZE=3D2 FACE=3D"Times New =
Roman">C:\mjb\djgpp>go32-v2</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Times New Roman">go32/v2 version 2.0 built =
Dec 24 1999 17:46:57</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Times New Roman">Usage: go32 coff-image =
[args]</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Times New Roman">Rename this to go32.exe =
only if you need a go32 that can run v2 binaries as</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Times New Roman"> well as v1 binaries =
(old makefiles). Put ahead of the old go32 in your PATH</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Times New Roman"> but do not delete =
your old go32 - leave it in the PATH after this one.</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Times New Roman">Set GO32_V2_DEBUG=3Dy in =
the environment to get verbose output.</FONT>
</P>
<P><FONT SIZE=3D2 FACE=3D"Times New Roman">DPMI memory available: 82693 =
Kb</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Times New Roman">DPMI swap space available: =
0 Kb</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Times New =
Roman">-----------------------------------------------------------------=
-----------------------------------------------------------</FONT></P>
<P><FONT SIZE=3D2 FACE=3D"Times New Roman">C:\mjb\djgpp>set|grep =
DJG</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Times New =
Roman">DJGPP=3Dc:\mjb\djgpp\djgpp.env</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Times New =
Roman">-----------------------------------------------------------------=
-----------------------------------------------------------</FONT></P>
<P><FONT SIZE=3D2 FACE=3D"Times New Roman">C:\mjb\djgpp>path</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Times New =
Roman">PATH=3Dc:\mjb\bin;C:\WINNT\system32;C:\WINNT;d:\programs\toolmast=
er\bin;d:\program</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Times New =
Roman">s\toolmaster\bin\winnt;d:\programs\temp\bin;d:\programs\temp\bin\=
winnt;.;D:\Java</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Times New =
Roman">\SDK\1_2_2\bin;D:\Poet\bin;d:\programs\VisualCafe\BIN;d:\programs=
\VisualCafe\JAV</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Times New =
Roman">A\BIN;c:\mjb\djgpp\bin;</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Times New =
Roman">-----------------------------------------------------------------=
-----------------------------------------------------------</FONT></P>
<P><FONT SIZE=3D2 FACE=3D"Times New Roman">C:\mjb\djgpp\lang\cxx>dir =
get*.h</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Times New Roman"> Volume in drive C has =
no label.</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Times New Roman"> Volume Serial Number =
is 07CF-0208</FONT>
</P>
<P><FONT SIZE=3D2 FACE=3D"Times New Roman"> Directory of =
C:\mjb\djgpp\lang\cxx</FONT>
</P>
<P><FONT SIZE=3D2 FACE=3D"Times New Roman">01/14/00 =
01:02p =
471 getpagesize.h</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Times New =
Roman">-----------------------------------------------------------------=
-----------------------------------------------------------</FONT></P>
<P><FONT SIZE=3D2 FACE=3D"Times New Roman">C:\mjb\prg\cpp>type =
chkbld.cpp</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Times New Roman">#include =
<iostream.h></FONT>
</P>
<P><FONT SIZE=3D2 FACE=3D"Times New Roman">int main()</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Times New Roman">{</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Times New =
Roman"> cout << =
"Hello world - test build" << endl;</FONT>
</P>
<P><FONT SIZE=3D2 FACE=3D"Times New =
Roman"> return 0;</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Times New Roman">}</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Times New =
Roman">-----------------------------------------------------------------=
-----------------------------------------------------------</FONT></P>
<P><FONT SIZE=3D2 FACE=3D"Times New Roman">C:\mjb\prg\cpp>gxx -Wall =
chkbld.cpp -o chkbld.exe</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Times New Roman">In file included from =
chkbld.cpp:1:</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Times New =
Roman">c:/mjb/djgpp/lang/cxx/iostream.h:31: streambuf.h: No such file =
or directory (ENO</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Times New Roman">ENT)</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Times New =
Roman">-----------------------------------------------------------------=
-----------------------------------------------------------</FONT></P>
<P><FONT SIZE=3D2 FACE=3D"Times New Roman">C:\mjb\djgpp>ver</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Times New Roman">Windows NT Version =
4.0</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Times New =
Roman">-----------------------------------------------------------------=
-----------------------------------------------------------</FONT></P>
<P><FONT SIZE=3D2 FACE=3D"Times New =
Roman">C:\mjb\djgpp>go32-v2</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Times New Roman">go32/v2 version 2.0 built =
Dec 24 1999 17:46:57</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Times New Roman">Usage: go32 coff-image =
[args]</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Times New Roman">Rename this to go32.exe =
only if you need a go32 that can run v2 binaries as</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Times New Roman"> well as v1 binaries =
(old makefiles). Put ahead of the old go32 in your PATH</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Times New Roman"> but do not delete =
your old go32 - leave it in the PATH after this one.</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Times New Roman">Set GO32_V2_DEBUG=3Dy in =
the environment to get verbose output.</FONT>
</P>
<P><FONT SIZE=3D2 FACE=3D"Times New Roman">DPMI memory available: 82693 =
Kb</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Times New Roman">DPMI swap space available: =
0 Kb</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Times New =
Roman">-----------------------------------------------------------------=
-----------------------------------------------------------</FONT></P>
<P><FONT SIZE=3D2 FACE=3D"Times New Roman">C:\mjb\djgpp>set|grep =
DJG</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Times New =
Roman">DJGPP=3Dc:\mjb\djgpp\djgpp.env</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Times New =
Roman">-----------------------------------------------------------------=
-----------------------------------------------------------</FONT></P>
<P><FONT SIZE=3D2 FACE=3D"Times New Roman">C:\mjb\djgpp>path</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Times New =
Roman">PATH=3Dc:\mjb\bin;C:\WINNT\system32;C:\WINNT;d:\programs\toolmast=
er\bin;d:\program</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Times New =
Roman">s\toolmaster\bin\winnt;d:\programs\temp\bin;d:\programs\temp\bin\=
winnt;.;D:\Java</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Times New =
Roman">\SDK\1_2_2\bin;D:\Poet\bin;d:\programs\VisualCafe\BIN;d:\programs=
\VisualCafe\JAV</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Times New =
Roman">A\BIN;c:\mjb\djgpp\bin;</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Times New =
Roman">-----------------------------------------------------------------=
-----------------------------------------------------------</FONT></P>
<P><FONT SIZE=3D2 FACE=3D"Times New Roman">C:\mjb\djgpp\lang\cxx>dir =
get*.h</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Times New Roman"> Volume in drive C has =
no label.</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Times New Roman"> Volume Serial Number =
is 07CF-0208</FONT>
</P>
<P><FONT SIZE=3D2 FACE=3D"Times New Roman"> Directory of =
C:\mjb\djgpp\lang\cxx</FONT>
</P>
<P><FONT SIZE=3D2 FACE=3D"Times New Roman">01/14/00 =
01:02p =
471 getpagesize.h</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Times New =
Roman">-----------------------------------------------------------------=
-----------------------------------------------------------</FONT></P>
<P><FONT SIZE=3D2 FACE=3D"Times New Roman">C:\mjb\prg\cpp>type =
chkbld.cpp</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Times New Roman">#include =
<iostream.h></FONT>
</P>
<P><FONT SIZE=3D2 FACE=3D"Times New Roman">int main()</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Times New Roman">{</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Times New =
Roman"> cout << =
"Hello world - test build" << endl;</FONT>
</P>
<P><FONT SIZE=3D2 FACE=3D"Times New =
Roman"> return 0;</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Times New Roman">}</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Times New =
Roman">-----------------------------------------------------------------=
-----------------------------------------------------------</FONT></P>
<P><FONT SIZE=3D2 FACE=3D"Times New Roman">C:\mjb\prg\cpp>gxx -Wall =
chkbld.cpp -o chkbld.exe</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Times New Roman">In file included from =
chkbld.cpp:1:</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Times New =
Roman">c:/mjb/djgpp/lang/cxx/iostream.h:31: streambuf.h: No such file =
or directory (ENO</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Times New Roman">ENT)</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Times New =
Roman">-----------------------------------------------------------------=
-----------------------------------------------------------</FONT></P>
<P><FONT SIZE=3D2 FACE=3D"Times New Roman">C:\mjb\djgpp\lang\cxx>dir =
*stream*.h</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Times New Roman"> Volume in drive C has =
no label.</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Times New Roman"> Volume Serial Number =
is 07CF-0208</FONT>
</P>
<P><FONT SIZE=3D2 FACE=3D"Times New Roman"> Directory of =
C:\mjb\djgpp\lang\cxx</FONT>
</P>
<P><FONT SIZE=3D2 FACE=3D"Times New Roman">01/14/00 =
12:56p =
1,165 _iostreamP.h</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Times New Roman">01/14/00 =
12:56p =
3,475 fstream.h</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Times New Roman">01/14/00 =
12:56p =
2,925 indstream.h</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Times New Roman">01/14/00 =
12:56p =
9,675 iostream.h</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Times New Roman">01/14/00 =
12:56p =
1,142 istream.h</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Times New Roman">01/14/00 =
12:56p =
1,142 ostream.h</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Times New Roman">01/14/00 =
12:56p =
5,431 parsestream.h</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Times New Roman">01/14/00 =
12:57p =
2,291 pfstream.h</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Times New Roman">01/14/00 =
12:57p =
2,602 stdiostream.h</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Times New Roman">01/14/00 =
12:57p =
2,023 stream.h</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Times New Roman">01/14/00 =
12:57p =
17,057 streambuf.h</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Times New Roman">01/14/00 =
12:57p =
4,314 strstream.h</FONT>
</P>
<BR>
<BR>
</BODY>
</HTML>
------_=_NextPart_001_01BFB9A6.4FF9CC46--
- Raw text -