From: wmorgans AT tiac DOT net (Weldon Morgan) Newsgroups: comp.os.msdos.djgpp Subject: Re: Help for a newbie re:environment Date: Wed, 25 Dec 1996 12:58:36 GMT Organization: The Internet Access Company Lines: 257 Message-ID: <32c224f2.15624423@news> References: <32BF6E3E DOT 7A1F AT tiac DOT net> <32C07337 DOT 12D2 AT cs DOT com> Reply-To: wmorgans AT tiac DOT net NNTP-Posting-Host: 206.119.33.68 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Thanks John, for replying. Yes, I read all of the FAQ 8.1. I didn't touch DJGPP.ENV, its still in the DJGPP root directory (C:\DJGPP\DJGPP.ENV). Files in config.sys is 40. All files in the distribution are where they were when I unzipped them with the -d switch. No files were moved. On the command line I entered: "gcc interest.c -o interest" (without the quotes) I ran your utility DJVERIFY. The following are the logs it created: DJVERIFY -- DJGPP Installation Verification Utility -- version 0.33a *** Interactive Mode *** Initializing... Report filename = 'djvrfy01.log' Examining environment... Location of DJGPP.ENV = C:/djgpp/djgpp.env Location of DJGPP programs = c:/djgpp/bin/ Examining configuration...done. Generating system report to sysrpt00.log... Attempting to compile test program 'temp0000.c'. c:/djgpp/bin/redir -o temp0000.out -eo c:/djgpp/bin/gcc -v -Wall -g -O -o temp0000.exe temp0000.c Finished generating system report. Again, I did a system report: -----===== DJGPP System Report file =====----- Generated by DJVERIFY version 0.33 Alpha on Wed Dec 25 06:49:46 1996 This report should be posted to the DJGPP newsgroup/mailing list along with a complete description of the problem or problems you are experiencing. See the file readme.1st for posting instructions. ***** c:/config.sys ***** DEVICE=C:\WINDOWS\HIMEM.SYS DEVICE=C:\WINDOWS\EMM386.EXE NOEMS Files=40 DOS=UMB DEVICEHIGH /L:1,12048 =C:\WINDOWS\SETVER.EXE DOS=HIGH REM ** FILES=30 SHELL=C:\COMMAND\COM C:\ /P /E:600 DEVICE=\DEV\CDMKE41.SYS /D:MSCD001 /SBP:220 ***** END ***** ***** c:/autoexec.bat ***** SET BLASTER=A220 I5 D1 T4 SET SOUND=C:\SBPRO C:\SBPRO\SBP-SET /M:12 /VOC:12 /CD:12 /FM:12 /LINE:12 @ECHO OFF PROMPT $p$g PATH C:\WINDOWS;C:\WINDOWS\COMMAND;C:\DOS;C:\Compression;C:\JAVA\BIN;C:\fprot;C:\djgpp\bin;C:\q SET PATH=%PATH%;C:\WINDOWS\Twain_32\Scanwiz;C:\WINDOWS\Twain\Scanwiz SET DJGPP=C:/djgpp/djgpp.env SET TMPDIR=C:\temp SET TEMP=C:\temp SET GO32TMP=C:/temp SET GO32=driver c:/djgpp/drv/stdvga.grn virstop.exe rem - By Windows Setup - C:\WINDOWS\COMMAND\MSCDEX.EXE /D:MSCD001 ***** END ***** ***** C:/djgpp/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: ***** END ***** ***** Output of 'command /c set' ***** TMP=C:\WINDOWS\TEMP winbootdir=C:\WINDOWS COMSPEC=C:\WINDOWS\COMMAND.COM SOUND=C:\SBPRO PROMPT=$p$g PATH=C:\WINDOWS;C:\WINDOWS\COMMAND;C:\DOS;C:\COMPRESSION;C:\JAVA\BIN;C:\FPROT;C:\DJGPP\BIN;C:\Q;C:\WINDOWS\TWAIN_32\SCANWIZ;C:\WINDOWS\TWAIN\SCANWIZ DJGPP=C:/djgpp/djgpp.env TMPDIR=C:\temp TEMP=C:\temp GO32TMP=C:/temp GO32=driver c:/djgpp/drv/stdvga.grn windir=C:\WINDOWS BLASTER=A220 I5 D1 DJDIR=c:/djgpp USER=dosuser EMU387=c:/djgpp/bin/emu387.dxe LFN=n ***** END ***** ***** Output of 'c:/djgpp/bin/go32-v2' ***** go32/v2 version 2.0 built Aug 12 1996 22:27:23 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=y in the environment to get verbose output. DPMI memory available: 11191 Kb DPMI swap space available: 17969 Kb ***** END ***** ***** Sample program compilation with gcc -v ***** c:/djgpp/bin/redir -o temp0000.out -eo c:/djgpp/bin/gcc -v -Wall -g -O -o temp0000.exe temp0000.c Reading specs from c:/djgpp/lib\specs gcc version 2.7.2.1 c:/djgpp/bin\cpp.exe -lang-c -v -undef -D__GNUC__=2 -D__GNUC_MINOR__=7 -Dunix -Di386 -DGO32 -DMSDOS -DDJGPP=2 -DDJGPP_MINOR=1 -D__unix__ -D__i386__ -D__GO32__ -D__MSDOS__ -D__DJGPP__=2 -D__DJGPP_MINOR__=1 -D__unix -D__i386 -D__GO32 -D__MSDOS -D__DJGPP=2 -D__DJGPP_MINOR=1 -D__OPTIMIZE__ -g -Wall temp0000.c C:\temp\ccbaaaaa GNU CPP version 2.7.2.1 (80386, BSD syntax) #include "..." search starts here: #include <...> search starts here: c:/djgpp/include c:/djgpp/contrib/grx20/include /usr/local/include /usr/local/go32/include /usr/local/lib/gcc-lib/go32/2.7.2.1/include /usr/include End of search list. c:/djgpp/bin\cc1.exe C:\temp\ccbaaaaa -quiet -dumpbase temp0000.c -g -O -Wall -version -o C:\temp\cccaaaaa GNU C version 2.7.2.1 (80386, BSD syntax) compiled by GNU C version 2.7.2.1. c:/djgpp/bin\as.exe -o C:\temp\ccdaaaaa C:\temp\cccaaaaa c:/djgpp/bin\ld.exe -o temp0000.exe c:/djgpp/lib\crt0.o -Lc:/djgpp/lib C:\temp\ccdaaaaa -Tdjgpp.djl -lgcc -lc -lgcc c:/djgpp/bin\stubify.exe -v temp0000.exe stubify for djgpp V2.X executables, Copyright (C) 1995 DJ Delorie stubify: temp0000.exe -> temp0000.000 -> temp0000.exe ***** END ***** -----===== END OF SYSTEM REPORT =====----- According the the report generated by djverify, everything seems to be in order. Initially when I ran djverify, I was running DJGPP v.1. Since djverify will not work with v.1, I visited Simtel and got the v.2 binaries. I ran the above reports after I installed v.2. Which is why the first report is named "djvrfy01.log" instead of "djvrfy00.log"). On Tue, 24 Dec 1996 16:20:07 -0800, "John M. Aldrich" wrote: >Weldon Morgan wrote: >> >> I checked the DJGPP FAQ so don't flame me. >> >> When I tried to compile a simple program, I received the error stdio.h >> and math.h not found. These are standard include files located in my >> c:\djgpp\include folder. >> >> When I checked the environment, the environment pointed to the DJGPP.ENV >> file I entered in autoexec.bat. I am clueless why gcc can't find the >> include files. > >Did you read the second half of section 8.1? Make sure you haven't >moved or altered 'djgpp.env' in any way, that you have sufficient FILES >set in your config.sys, that you haven't moved or renamed any of the >DJGPP programs, and that you aren't having problems due to running DJGPP >on a networked drive. You say that the headers are in the include >folder, but did you make sure to unzip ALL the packages with '-d'? > >Failing that, please post a complete system report as outlined in the >FAQ section 6.12, and also include the command line or makefile you use >to compile. If you use RHIDE, then be sure you have the latest version >from Robert Hoehne's web site. > >If you want to try out an in-development program for evaluating your >DJGPP system configuration, try downloading the alpha of DJVERIFY from >ftp://ftp.delorie.com/pub/djgpp/alpha/vrfy033a.zip. Try running the >test compilation and see if it generates the same error, and also try >using it to generate a system report similar to the one mentioned >above. Warning: this program is an ALPHA version, so its performance >cannot be guaranteed. > >Good luck! > >-- >--------------------------------------------------------------------- >| John M. Aldrich, aka Fighteer I | mailto:fighteer AT cs DOT com | >| God's final message to His Creation: | http://www.cs.com/fighteer | >| "We apologize for the inconvenience."| Fight against proprietary | >| - Douglas Adams | software - support the FSF!| >---------------------------------------------------------------------