Mail Archives: djgpp/2002/01/22/16:53:28
X-Authentication-Warning: | delorie.com: mailnull set sender to djgpp-bounces using -f
|
Message-ID: | <000b01c1a38f$6ea14c80$453e3e04@vz.dsl.genuity.net>
|
From: | "res0meoe" <res0meoe AT verizon DOT net>
|
To: | <djgpp AT delorie DOT com>
|
Subject: | Help with DJGPP problem
|
Date: | Tue, 22 Jan 2002 13:54:55 -0800
|
MIME-Version: | 1.0
|
X-Priority: | 3
|
X-MSMail-Priority: | Normal
|
X-Mailer: | Microsoft Outlook Express 5.50.4522.1200
|
X-MimeOLE: | Produced By Microsoft MimeOLE V5.50.4522.1200
|
Reply-To: | djgpp AT delorie DOT com
|
This is a multi-part message in MIME format.
------=_NextPart_000_0007_01C1A34C.5F717E80
Content-Type: multipart/alternative;
boundary="----=_NextPart_001_0008_01C1A34C.5F717E80"
------=_NextPart_001_0008_01C1A34C.5F717E80
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
To: Whom It may concern
I'm a programmer trying to learn C++ from the book, "SAMS Teach Yourself =
C++ in 24 hours".=20
When I compile the following program, there are no errors. But when I =
run the program, the following
error message is displayed. "Invalid argument (EINVAL)".=20
#include <iostream.h>
int main()
{
cout << "Hello World!\n";
return 0;
}
Attached is the autoexec.txt (autoexec.bat), environ.txt (results from =
the set command), go32.txt (go32-v2.exe). The
config.sys file was empty.
Thanks for your help,
Elan Dorsey
------=_NextPart_001_0008_01C1A34C.5F717E80
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 http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 5.50.4611.1300" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>To: Whom It may concern</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>I'm a programmer trying to learn C++ =
from the book,=20
"SAMS Teach Yourself C++ in 24 hours". </FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>When I compile the following program, =
there are no=20
errors. But when I run the program, the following</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>error message is displayed. "Invalid =
argument=20
(EINVAL)". </FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>#include =
<iostream.h></FONT></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> cout << "Hello=20
World!\n";</FONT></DIV>
<DIV><FONT face=3DArial size=3D2> return 0;</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>}</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Attached is the autoexec.txt =
(autoexec.bat),=20
environ.txt (results from the set command), go32.txt (go32-v2.exe).=20
The</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>config.sys file was empty.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Thanks for your help,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Elan Dorsey</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV></BODY></HTML>
------=_NextPart_001_0008_01C1A34C.5F717E80--
------=_NextPart_000_0007_01C1A34C.5F717E80
Content-Type: text/plain;
name="autoexec.txt"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
filename="autoexec.txt"
SET windir=3DC:\WINDOWS
SET winbootdir=3DC:\WINDOWS
SET COMSPEC=3DC:\WINDOWS\COMMAND.COM
SET PROMPT=3D$p$g
SET TEMP=3DC:\WINDOWS\TEMP
SET TMP=3DC:\WINDOWS\TEMP
SET PATH=3D"C:\Program =
Files\Blues\";C:\WINDOWS\SYSTEM;C:\orawin95\bin;"C:\Program =
Files\Oracle\jre\1.1.7\bin";C:\WINDOWS;"C:\WINDOWS\COMMAND =
";C:\DJGPP\BIN
SET DJGPP=3DC:\DJGPP\DJGPP.ENV
------=_NextPart_000_0007_01C1A34C.5F717E80
Content-Type: text/plain;
name="environ.txt"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
filename="environ.txt"
COMSPEC=3DC:\WINDOWS\COMMAND.COM
PROMPT=3D$p$g
TEMP=3DC:\WINDOWS\TEMP
TMP=3DC:\WINDOWS\TEMP
PATH=3DC:\Program =
Files\Blues\;C:\WINDOWS\SYSTEM;C:\orawin95\bin;C:\Program =
Files\Oracle\jre\1.1.7\bin;C:\WINDOWS;C:\WINDOWS\COMMAND ;C:\DJGPP\BIN
DJGPP=3DC:\DJGPP\DJGPP.ENV
winbootdir=3DC:\WINDOWS
windir=3DC:\WINDOWS
BLASTER=3DA220 I5 D1 T4 P330
CMDLINE=3Dmore set
------=_NextPart_000_0007_01C1A34C.5F717E80
Content-Type: text/plain;
name="go32.txt"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
filename="go32.txt"
go32/v2 version 2.0 built Nov 15 1998 14:36:43
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=3Dy in the environment to get verbose output.
DPMI memory available: 63491 Kb
DPMI swap space available: 64377 Kb
------=_NextPart_000_0007_01C1A34C.5F717E80--
- Raw text -