Mail Archives: djgpp/1999/10/03/13:18:38
Thanks a lot, my program will now compile. However, I now have a new error
when I try to run it. Shown below is the text displayed in the messages
window when I try and run the compiled program from rhide.
Creating: hello.exe
Error: c:/djgpp/bin/ld.exe: cannot open -lstdcx: No such file or directory
(ENOENT)
There were some errors
I humbly wonder if you or any other experts out there could shed any light
on this one. Shown below is the relevant information that might help you
diagnose the problem.
Program that will now compile but not run -
#include <iostream.h>
int main()
{
cout <<"Hello World!";
return 0;
}
contents of environ.lst file
TMP=c:\windows\TEMP
TEMP=C:\windows\TEMP
PROMPT=$p$g
winbootdir=C:\WINDOWS
COMSPEC=C:\WINDOWS\COMMAND.COM
PATH=C:\DJGPP\BIN;C:\WINDOWS;C:\WINDOWS;C:\WINDOWS\COMMAND
DJGPP=C:\DJGPP\DJGPP.ENV
windir=C:\WINDOWS
BLASTER=A220 I5 D3 T4
CMDLINE=gxx -o -v hello.exe hello.cpp
contents of 'autoexec.bat' file -
@ECHO OFF
rem - By Windows Setup - MSCDEX.EXE /D:OEMCD001 /l:d
MOUSE/p
LH C:\WINDOWS\asp4dos.com
SET BLASTER=A220 I5 D3 T4
mode con codepage prepare=((850) c:\windows\COMMAND\ega.cpi)
mode con codepage select=850
keyb uk,,c:\windows\COMMAND\keyboard.sys
SET PATH=C:\DJGPP\BIN;%PATH%
SET DJGPP=C:\DJGPP\DJGPP.ENV
contents of 'config.sys' file -
DEVICE=C:\WINDOWS\HIMEM.SYS
DEVICE=C:\WINDOWS\EMM386.EXE NOEMS
BUFFERS=20
FILES=60
DEVICEHIGH=cddrv.SYS /D:OEMCD001
LASTDRIVE=Z
device=c:\windows\COMMAND\display.sys con=(ega,,1)
Country=044,850,c:\windows\COMMAND\country.sys
----- Original Message -----
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Joshua Newman <Joshua DOT Newman AT tesco DOT net>
Cc: <djgpp AT delorie DOT com>
Sent: Sunday, October 03, 1999 12:03 PM
Subject: Re: djgpp compilation problem
>
> On Fri, 1 Oct 1999, Joshua Newman wrote:
>
> > c:\DJGPP\bin>gxx -o -v hello.exe hello.cpp
>
> Wrong command, use this instead:
>
> gxx -v -o hello.exe hello.cpp
>
> > 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
>
> See section 8.2 of the DJGPP FAQ list, it explains how to fix this.
>
> > PS - I couldn't include the information from g032-v2, as the program =
> > does not seem to be present on my computer
>
> The program is called go32-v2: the second character is the letter o,
> not the digit zero.
>
- Raw text -