Message-ID: <000d01bf0c43$724aa560$071aac3e@oemcomputer> From: "Joshua Newman" To: Subject: djgpp compilation problem Date: Fri, 1 Oct 1999 20:29:39 +0100 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_000A_01BF0C4B.AF4B6E60" 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 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
When I try to compile the c++ = program below=20 (hello.cpp) 
 
#include = <iostream.h>
 
int main()
{
    cout <<"Hello=20 World!";
    return = 0;
}
 
I get the following message -=20
 
Command typed at MSDOS prompt - =
c:\DJGPP\bin>gxx -o = -v=20 hello.exe hello.cpp
 
message - =
gxx.exe: hello.exe: No such file or = directory=20 (ENOENT)
In file included from = hello.cpp:1:
c:/djgpp/lang/cxx/iostream.h:31: = streambuf.h : No=20 such file or directory (ENOENT)
 
However, both iostream.h and = streambuf.h are=20 present in the lang/cxx directory
 
 
contents of environ.lst=20 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=20 /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=20 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=20 -
 

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=20 obvious but I'm totally new to DJGPP and its counterparts.  I = would be=20 extremely grateful if somebody could cast an expert eye over this = problem,=20 as I haven't got a clue.  Thankyou in anticipation of your=20 reply(s).
 
 
 
Joshua Newman
 
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 a CD as opposed to the net, I don't know if that makes = any=20 difference). 
------=_NextPart_000_000A_01BF0C4B.AF4B6E60--