delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/03/01/08:55:51

From: ao950 AT FreeNet DOT Carleton DOT CA (Paul Derbyshire)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: GCC can't find the INCLUDE files.
Date: 1 Mar 1997 04:57:18 GMT
Organization: The National Capital FreeNet
Lines: 31
Message-ID: <5f8cve$a4t@freenet-news.carleton.ca>
References: <3314C871 DOT 33B4 AT boe00 DOT bowiestate DOT edu> <3315242E DOT 2D16 AT cs DOT com>
Reply-To: ao950 AT FreeNet DOT Carleton DOT CA (Paul Derbyshire)
NNTP-Posting-Host: freenet2.carleton.ca
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

"John M. Aldrich" (fighteer AT cs DOT com) writes:
> Mike Loll wrote:
>> 
>> Whenever I try and compile a program ( a simple Hello World type program
>> ) GCC says it can't find the include file(s).  Am I doing something
>> wrong here?  Do I need some sort of config file?   I checked DJGPP.ENV
>> and it showed the include directory as /include ( my directory for djgpp
>> is C:\DJGPP)  Any help is welcome.  Thanks!
> 
> Did you read all of the 'readme.1st' file that comes with DJGPP?  In
> order for the programs to work, you must add the following settings to
> your AUTOEXEC.BAT file:
> 
>  - Add the C:\DJGPP\BIN directory to your PATH
>  - Add the following line:
>     SET DJGPP=C:\DJGPP\DJGPP.ENV
> 
> Then reboot and see if you are still having problems.

Fun Fact: Laborious ten minute reboots are not needed when modifying
autoexec.bat. Instead, change the file, then enter the same lines at the
dos prompt. I.e. set path = %PATH%;C:\DJGPP\BIN and Set
djgpp=C:\DJGPP\DJGPP.ENV. Then go ahead and run djgpp. Unfortunately, the
same is not true of config.sys.

--
    .*.  Where feelings are concerned, answers are rarely simple [GeneDeWeese]
 -()  <  When I go to the theater, I always go straight to the "bag and mix"
    `*'  bulk candy section...because variety is the spice of life... [me]
Paul Derbyshire ao950 AT freenet DOT carleton DOT ca, http://chat.carleton.ca/~pderbysh

- Raw text -


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