delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/03/12/07:23:34

From: j&ryoung AT aracnet DOT com (Jason Young)
Newsgroups: comp.os.msdos.djgpp
Subject: Newbie question regarding header files and environment for gcc
Message-ID: <38cb8491.2826624@typhoon.aracnet.com>
X-Newsreader: Forte Free Agent 1.11/32.235
Lines: 127
Date: Sun, 12 Mar 2000 11:55:03 GMT
NNTP-Posting-Host: 216.99.217.10
X-Complaints-To: news AT aracnet DOT com
X-Trace: typhoon.aracnet.com 952862005 216.99.217.10 (Sun, 12 Mar 2000 03:53:25 PST)
NNTP-Posting-Date: Sun, 12 Mar 2000 03:53:25 PST
Organization: Aracnet Internet
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

I'm having some trouble getting my djgpp environment set up properly.
I'm on a Windows '95 machine running gcc in a DOS window. I had a
number of problems related to gcc locating header files, so I deleted
everything and took the actions that follow. My djgpp folder is
d:\dev\djgpp. I have checked the FAQ sections that seem to apply, but
the variables are set as indicated, as far as I can tell.

I extracted the following files:

bnu281b.zip
djdev203.zip
gcc2952b.zip
faq230b.zip

My autoexec.bat:

C:\WINDOWS\a3init.exe
set DJGPP=D:\DEV\DJGPP\DJGPP.ENV
set PATH=%PATH%;D:\DEV\DJGPP\BIN

And my config.sys:

FILES=99

I rebooted. 

I attempted to compile and received the following:

D:\dev\djgpp>gcc sixfact.c -o sixfact.exe -v
Using builtin specs.
gcc version 2.95.2 19991024 (release)
 cpp -lang-c -v -D__GNUC__=2 -D__GNUC_MINOR__=95 -Dunix -Di386 -DGO32
-DDJGPP=2
-DMSDOS -D__unix__ -D__i386__ -D__GO32__ -D__DJGPP__=2 -D__MSDOS__
-D__unix -D__
i386 -D__GO32 -D__DJGPP=2 -D__MSDOS -Asystem(unix) -Asystem(msdos)
-Acpu(i386) -
Amachine(i386) -Acpu(i386) -Amachine(i386) -Di386 -D__i386 -D__i386__
-D__tune_p
entium__ -imacros ../include/sys/version.h -remap sixfact.c
C:\WINDOWS\TEMP\ccun
dfVw.i
gcc.exe: installation problem, cannot exec `cpp': No such file or
directory (ENO
ENT)

At this point, set returned:

D:\dev\djgpp>set
TMP=C:\WINDOWS\TEMP
TEMP=C:\WINDOWS\TEMP
PROMPT=$p$g
winbootdir=C:\WINDOWS
COMSPEC=C:\WINDOWS\COMMAND.COM
ALSINI=C:\WINDOWS\ALS3.INI
DJGPP=D:\DEV\DJGPP\DJGPP.ENV
PATH=C:\WINDOWS;C:\WINDOWS\COMMAND;D:\DEV\DJGPP\BIN
windir=C:\WINDOWS
BLASTER=A220 I5 D1 H1 REC3 T6 P330
CMDLINE=gcc sixfact.c -o sixfact.exe -v

I figured I could either copy cpp.exe to djgpp\bin or add
d:\dev\djgpp\lib\gcc-lib\djgpp\2.952 to the path. I had tried the
first solution with no positive results in my earlier trials, so I
tried the latter.

Then, when I tried to compile, I received:

D:\dev\djgpp>gcc sixfact.c -o sixfact.exe -v
Using builtin specs.
gcc version 2.95.2 19991024 (release)
 cpp -lang-c -v -D__GNUC__=2 -D__GNUC_MINOR__=95 -Dunix -Di386 -DGO32
-DDJGPP=2
-DMSDOS -D__unix__ -D__i386__ -D__GO32__ -D__DJGPP__=2 -D__MSDOS__
-D__unix -D__
i386 -D__GO32 -D__DJGPP=2 -D__MSDOS -Asystem(unix) -Asystem(msdos)
-Acpu(i386) -
Amachine(i386) -Acpu(i386) -Amachine(i386) -Di386 -D__i386 -D__i386__
-D__tune_p
entium__ -imacros ../include/sys/version.h -remap sixfact.c
C:\WINDOWS\TEMP\cczR
9quA.i
GNU CPP version 2.95.2 19991024 (release) (80386, BSD syntax)
#include "..." search starts here:
End of search list.
The following default directories have been omitted from the search
path:
 $DJDIR/lang/cxx
 $DJDIR/lib/gcc-lib/djgpp/2.952/../../../../djgpp/include
 $DJDIR/lib/gcc-lib/djgpp/2.952/include
 $DJDIR/include
End of omitted list.
cpp.exe: ../include/sys/version.h: No such file or directory (ENOENT)

The full path to the file is d:\dev\djgpp\include\sys\version.h. By
the way, only stdio.h is referenced in the sixfact.c file. I'm hoping
someone can help. For completeness, my set command at this point
returned:

D:\dev\djgpp>set
TMP=C:\WINDOWS\TEMP
TEMP=C:\WINDOWS\TEMP
PROMPT=$p$g
winbootdir=C:\WINDOWS
COMSPEC=C:\WINDOWS\COMMAND.COM
ALSINI=C:\WINDOWS\ALS3.INI
DJGPP=D:\DEV\DJGPP\DJGPP.ENV
windir=C:\WINDOWS
BLASTER=A220 I5 D1 H1 REC3 T6 P330
PATH=C:\WINDOWS;C:\WINDOWS\COMMAND;D:\DEV\DJGPP\BIN;D:\DEV\DJGPP\LIB\GCC-LIB\DJG
PP\2.952
CMDLINE=gcc sixfact.c -o sixfact.exe -v

So, any words of wisdom for the uninitiated? I haven't seen anything
in this ng or the FAQ's or readme's that suggests a solution for this
that I haven't verified (or, at least, believed that I verified).

Thanks!



--
Jason

Dvorak rules!!!

Change the & to n to e-mail.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019