Mail Archives: djgpp/1997/05/09/19:06:56
This is the preamble of an RFC-1341 encoded, mixed message.
---- next item ----
Content-Type: Text/Plain
Hi,
I tried to compile a C++ program using DJGPP compiler. These were the steps
executed:
1) Lownloaded 6 files in D:\ARUNA\DJGPP
djdev202.zip,gcc2721.zip,bnu27b.zip,gpp2721b.zip,lgp271p.zip,txi390b.zip
2) After unzipping - made the follg alterations in the autoexec.bat.
SET DJGPP=D:/ARUNA/DJGPP/DJGPP.ENV
I typed the above as the last line in the autoexec.bat.
In the SET PATH command included
PATH
C:\OS2;C:\OS2\MDOS;C:\OS2\MDOS\WINOS2;C:\;c:\tcpip\dos\bin;D:\SQL60\BIN;D:\ARUNA\DJGPP\BIN
and rebooted the m/c.
3) I tried to execute a small C pgm test.c which is as follows:
#include <stdio.h>
int main()
{
printf ("This is really great");
return 0;
}
Went to d:\aruna\djgpp and typed : gcc -c -Wall test.c
It comes out with an error message stating test.c:1 STDIO.h No such file or
directory.
The following message, comes for iostream.h in case of C++ programs.
d:aruna\djgpp\lang\cxx\stream.h:36
d:aruna\djgpp\lang\cxx\iostream.h:31 from Test1.cc:1
d:aruna\djgpp\lang\cxx\libio.h:46 - No such file or directory(ENONT)
I read the FAQ questions reg. the above which states that the DJGPP.ENV should
be specified correctly in the autoexec.bat.
I have attached AUTOEXEC.BAT, DLGPP.ENV and DJGPP.LST (got from command set >
DJGPP.LST)
My machine works with OS/2 operating system with overlayer of DOS.
I would really appreciate if someone could help me out with this as I am stuck
and can't find a way out.
- djgpp.env
- AUTOEXEC.BAT
- djgpp.lst
Expecting a reply,
Thanks,
Aruna
---- next item ----
Content-Type:Text/Plain; Name="djgpp.env"
#= Don't edit this line unless you move djgpp.env outside
#= of the djgpp installation directory. If you do move
#= it, set DJDIR to the directory you installed DJGPP in.
#=
DJDIR=%:/>DJGPP%
+USER=dosuser
+TMPDIR=%DJDIR%/tmp
+EMU387=%DJDIR%/bin/emu387.dxe
+LFN=n
[bison]
BISON_HAIRY=%DJDIR%/lib/bison.hai
BISON_SIMPLE=%DJDIR%/lib/bison.sim
[cpp]
CPLUS_INCLUDE_PATH=%/>;CPLUS_INCLUDE_PATH%%DJDIR%/lang/cxx;%DJDIR%/include;%DJDIR%/contrib/grx20/include
C_INCLUDE_PATH=%/>;C_INCLUDE_PATH%%DJDIR%/include;%DJDIR%/contrib/grx20/include
OBJCPLUS_INCLUDE_PATH=%/>;OBJCPLUS_INCLUDE_PATH%%DJDIR%/include;%DJDIR%/lang/objc
OBJC_INCLUDE_PATH=%/>;OBJC_INCLUDE_PATH%%DJDIR%/include;%DJDIR%/lang/objc
[gcc]
COMPILER_PATH=%/>;COMPILER_PATH%%DJDIR%/bin
LIBRARY_PATH=%/>;LIBRARY_PATH%%DJDIR%/lib;%DJDIR%/contrib/grx20/lib
[info]
INFOPATH=%/>;INFOPATH%%DJDIR%/info;%DJDIR%/gnu/emacs/info
INFO_COLORS=0x1f.0x31
[emacs]
INFOPATH=%/>;INFOPATH%%DJDIR%/info;%DJDIR%/gnu/emacs/info
[less]
LESSBINFMT=*k<%X>
LESSCHARDEF=8bcccbcc12bc5b95.b127.b
LESS=%LESS% -h5$y5$Dd2.0$Du14.0$Ds4.7$Dk9.0$
[locate]
+LOCATE_PATH=%DJDIR%/lib/locatedb.dat
[ls]
+LS_COLORS=no=00:fi=00:di=36:lb=37;07:cd=40;33;01:ex=32:*.cmd=32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.deb=01;31:*.jpg=01;34:*.gif=01;34:*.bmp=01;34:*.ppm=01;34:*.tga=01;34:*.xbm=01;34:*.xpm=01;34:*.tif=01;34:*.mpg=01;37:*.avi=01;37:*.gl=01;37:*.dl=01;37:*~=08:*.bak=08:
[dir]
+LS_COLORS=no=00:fi=00:di=36:lb=37;07:cd=40;33;01:ex=32:*.cmd=32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.deb=01;31:*.jpg=01;34:*.gif=01;34:*.bmp=01;34:*.ppm=01;34:*.tga=01;34:*.xbm=01;34:*.xpm=01;34:*.tif=01;34:*.mpg=01;37:*.avi=01;37:*.gl=01;37:*.dl=01;37:*~=08:*.bak=08:
[vdir]
+LS_COLORS=no=00:fi=00:di=36:lb=37;07:cd=40;33;01:ex=32:*.cmd=32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.deb=01;31:*.jpg=01;34:*.gif=01;34:*.bmp=01;34:*.ppm=01;34:*.tga=01;34:*.xbm=01;34:*.xpm=01;34:*.tif=01;34:*.mpg=01;37:*.avi=01;37:*.gl=01;37:*.dl=01;37:*~=08:*.bak=08:
---- next item ----
Content-Type:Text/Plain; Name="AUTOEXEC.BAT"
@CALL C:\IBMAV\IBMAVDS C:\IBMAV\
@ECHO OFF
ECHO.
PROMPT $i$p$g
REM SET DELDIR=C:\DELETE,512;D:\DELETE,512;
PATH C:\OS2;C:\OS2\MDOS;C:\OS2\MDOS\WINOS2;C:\;c:\tcpip\dos\bin;D:\SQL60\BIN;D:\ARUNA\DJGPP\BIN
LOADHIGH APPEND C:\OS2;C:\OS2\SYSTEM
SET TMP=D:\
REM LOADHIGH DOSKEY FINDFILE=DIR /A /S /B $*
REM DOSKEY EDIT=QBASIC/EDITOR $*
REM SET DIRCMD=/A
SET TEMP=C:\OS2\MDOS\WINOS2\TEMP
SET ETC=c:\tcpip\dos\etc
SET IPF_PATH=D:\SQLLIB\WIN
SET BOOKSHELF=D:\SQLLIB\BOOK
SET PATH=%PATH%;D:\SQLLIB\WIN\BIN
SET HELP=D:\SQLLIB\WIN\HELP
SET COBCPY=D:\SQLLIB\WIN\INCLUDE
SET INCLUDE=D:\SQLLIB\WIN\INCLUDE
SET LIB=D:\SQLLIB\WIN\LIB
SET DJGPP=D:\ARUNA\DJGPP\DJGPP.ENV
---- next item ----
Content-Type:Text/Plain; Name="djgpp.lst"
COMSPEC=C:\OS2\MDOS\COMMAND.COM
IBMAV=C:\IBMAV\
PROMPT=$i$p$g
TMP=D:\
TEMP=C:\OS2\MDOS\WINOS2\TEMP
ETC=c:\tcpip\dos\etc
IPF_PATH=D:\SQLLIB\WIN
BOOKSHELF=D:\SQLLIB\BOOK
PATH=C:\OS2;C:\OS2\MDOS;C:\OS2\MDOS\WINOS2;C:\;C:\TCPIP\DOS\BIN;D:\SQL60\BIN;D:\ARUNA\DJGPP\BIN;D:\ARUNA\DJGPP\LANG\CXX;;D:\SQLLIB\WIN\BIN
HELP=D:\SQLLIB\WIN\HELP
COBCPY=D:\SQLLIB\WIN\INCLUDE
INCLUDE=D:\SQLLIB\WIN\INCLUDE
LIB=D:\SQLLIB\WIN\LIB
DJGPP=D:\ARUNA\DJGPP\DJGPP.ENV
---- next item ------
- Raw text -