delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/10/01/19:17:12

Message-ID: <000d01bf0c43$724aa560$071aac3e@oemcomputer>
From: "Joshua Newman" <Joshua DOT Newman AT tesco DOT net>
To: <djgpp AT delorie DOT com>
Subject: djgpp compilation problem
Date: Fri, 1 Oct 1999 20:29:39 +0100
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.00.2014.211
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211
Reply-To: djgpp AT delorie DOT com

This is a multi-part message in MIME format.

------=_NextPart_000_000A_01BF0C4B.AF4B6E60
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

When I try to compile the c++ program below (hello.cpp) =20

#include <iostream.h>

int main()
{
    cout <<"Hello World!";
    return 0;
}

I get the following message -=20

Command typed at MSDOS prompt -=20
c:\DJGPP\bin>gxx -o -v hello.exe hello.cpp

message -=20
gxx.exe: hello.exe: No such file or directory (ENOENT)
In file included from hello.cpp:1:
c:/djgpp/lang/cxx/iostream.h:31: streambuf.h : No such file or directory =
(ENOENT)

However, both iostream.h and streambuf.h are present in the lang/cxx =
directory


contents of environ.lst file

TMP=3Dc:\windows\TEMP

TEMP=3DC:\windows\TEMP

PROMPT=3D$p$g

winbootdir=3DC:\WINDOWS

COMSPEC=3DC:\WINDOWS\COMMAND.COM

PATH=3DC:\DJGPP\BIN;C:\WINDOWS;C:\WINDOWS;C:\WINDOWS\COMMAND

DJGPP=3DC:\DJGPP\DJGPP.ENV

windir=3DC:\WINDOWS

BLASTER=3DA220 I5 D3 T4

CMDLINE=3Dgxx -o -v hello.exe hello.cpp

contents of 'autoexec.bat' file -=20

@ECHO OFF
rem - By Windows Setup - MSCDEX.EXE  /D:OEMCD001 /l:d
MOUSE/p
LH C:\WINDOWS\asp4dos.com
SET BLASTER=3DA220 I5 D3 T4
mode con codepage prepare=3D((850) c:\windows\COMMAND\ega.cpi)
mode con codepage select=3D850
keyb uk,,c:\windows\COMMAND\keyboard.sys
SET PATH=3DC:\DJGPP\BIN;%PATH%
SET DJGPP=3DC:\DJGPP\DJGPP.ENV


contents of 'config.sys' file -

DEVICE=3DC:\WINDOWS\HIMEM.SYS

DEVICE=3DC:\WINDOWS\EMM386.EXE NOEMS

BUFFERS=3D20

FILES=3D60

DEVICEHIGH=3Dcddrv.SYS /D:OEMCD001

LASTDRIVE=3DZ

device=3Dc:\windows\COMMAND\display.sys con=3D(ega,,1)

Country=3D044,850,c:\windows\COMMAND\country.sys



 I know the mistake is probably something really obvious but I'm totally =
new to DJGPP and its counterparts.  I would be extremely grateful if =
somebody could cast an expert eye over this problem, as I haven't got a =
clue.  Thankyou in anticipation of your reply(s).



Joshua Newman

PS - I couldn't include the information from g032-v2, as the program =
does not seem to be present on my computer (I obtained DJGPP from a CD =
as opposed to the net, I don't know if that makes any difference). =20

------=_NextPart_000_000A_01BF0C4B.AF4B6E60
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 content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2014.210" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#f0e8d8>
<DIV><FONT face=3DArial size=3D2><STRONG>When I try to compile the c++ =
program below=20
(hello.cpp)&nbsp; </STRONG></FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>#include =
&lt;iostream.h&gt;</FONT></DIV>
<DIV>&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;&nbsp;&nbsp; cout &lt;&lt;"Hello=20
World!";</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; return =
0;</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>}</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><STRONG>I get the following message -=20
</STRONG></FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><STRONG>Command typed at MSDOS prompt - =

</STRONG></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><STRONG>c:\DJGPP\bin&gt;</STRONG>gxx -o =
-v=20
hello.exe hello.cpp</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><STRONG>message - =
</STRONG></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>gxx.exe: hello.exe: No such file or =
directory=20
(ENOENT)</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>In file included from =
hello.cpp:1:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>c:/djgpp/lang/cxx/iostream.h:31: =
streambuf.h : No=20
such file or directory (ENOENT)</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>However, both iostream.h and =
streambuf.h are=20
present in the lang/cxx directory</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><STRONG>contents of environ.lst=20
file</STRONG></FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=3D2>
<P>TMP=3Dc:\windows\TEMP</P>
<P>TEMP=3DC:\windows\TEMP</P>
<P>PROMPT=3D$p$g</P>
<P>winbootdir=3DC:\WINDOWS</P>
<P>COMSPEC=3DC:\WINDOWS\COMMAND.COM</P>
<P>PATH=3DC:\DJGPP\BIN;C:\WINDOWS;C:\WINDOWS;C:\WINDOWS\COMMAND</P>
<P>DJGPP=3DC:\DJGPP\DJGPP.ENV</P>
<P>windir=3DC:\WINDOWS</P>
<P>BLASTER=3DA220 I5 D3 T4</P>
<P>CMDLINE=3Dgxx -o -v hello.exe hello.cpp</P></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><STRONG>contents of 'autoexec.bat' file =
-=20
</STRONG></FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV>@ECHO OFF<BR>rem - By Windows Setup - MSCDEX.EXE&nbsp; /D:OEMCD001=20
/l:d<BR>MOUSE/p<BR>LH C:\WINDOWS\asp4dos.com<BR>SET BLASTER=3DA220 I5 D3 =

T4<BR>mode con codepage prepare=3D((850) =
c:\windows\COMMAND\ega.cpi)<BR>mode con=20
codepage select=3D850<BR>keyb uk,,c:\windows\COMMAND\keyboard.sys<BR>SET =

PATH=3DC:\DJGPP\BIN;%PATH%<BR>SET DJGPP=3DC:\DJGPP\DJGPP.ENV<BR></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><STRONG>contents of 'config.sys' file=20
-</STRONG></FONT></DIV>
<DIV><FONT face=3DArial =
size=3D2><STRONG></STRONG></FONT>&nbsp;</DIV><FONT size=3D2>
<P>DEVICE=3DC:\WINDOWS\HIMEM.SYS</P>
<P>DEVICE=3DC:\WINDOWS\EMM386.EXE NOEMS</P>
<P>BUFFERS=3D20</P>
<P>FILES=3D60</P>
<P>DEVICEHIGH=3Dcddrv.SYS /D:OEMCD001</P>
<P>LASTDRIVE=3DZ</P>
<P>device=3Dc:\windows\COMMAND\display.sys con=3D(ega,,1)</P>
<P>Country=3D044,850,c:\windows\COMMAND\country.sys</P>
<P>&nbsp;</P>
<DIV></FONT>&nbsp;<FONT size=3D2>I know the mistake is probably =
something really=20
obvious but I'm totally new to DJGPP and its counterparts.&nbsp;&nbsp;I =
would be=20
extremely grateful if somebody could&nbsp;cast an expert eye over this =
problem,=20
as I haven't got a clue.&nbsp; Thankyou in anticipation of your=20
reply(s).</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV align=3Dcenter><FONT size=3D2>Joshua Newman</FONT></DIV>
<DIV align=3Dcenter><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV align=3Dleft><FONT size=3D2>PS - I couldn't include the information =
from=20
g032-v2, as the program does not seem to be present on my computer (I =
obtained=20
DJGPP from&nbsp;a CD as opposed to the net, I don't know if that makes =
any=20
difference).&nbsp; </FONT></DIV></BODY></HTML>

------=_NextPart_000_000A_01BF0C4B.AF4B6E60--

- Raw text -


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