www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/08/28/21:07:14

Xref: news2.mv.net comp.os.msdos.djgpp:7986
From: "John M. Aldrich" <fighteer AT cs DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: anything special with drdos?
Date: Wed, 28 Aug 1996 18:38:21 -0700
Organization: Three pounds of chaos and a pinch of salt
Lines: 37
Message-ID: <3224F48D.538@cs.com>
References: <501un1$4o2l AT sat DOT ipp-garching DOT mpg DOT de>
NNTP-Posting-Host: ppp225.cs.com
Mime-Version: 1.0
To: Christoph Herberhold <herberho AT mango DOT biochem DOT mpg DOT de>
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Christoph Herberhold wrote:
> 
> Hi!
> I just installed djgpp on my 386SX but I cannot compile even the easy
> helloworld program because the compiler cannot find the stdio.h
> i already checked with the faq, but the path is set correctly i did not rename
> anything and the FILE number in the config.sys is set to 15. the exact error
> message was "hiworld.c:3:stdio.h:no such file or directory (ENOENT)"
> 
> Is there something special with dr dos?? or did i something wrong?

Make sure you set the DJGPP environment variable correctly in your autoexec.bat.
The line should look like this:

SET DJGPP=C:\DJGPP\DJGPP.ENV

Of course, if your DJGPP is someplace different, change the drive/directory
appropriately.  Also note that you *must* type in the environment variable
exactly as shown.

Also, (this may sound silly, but I've learned not to assume) are you sure
that you are using #include <stdio.h>, and not #include "stdio.h"?

If the above items don't work, please add -v to the gcc command line and
post everything it prints.  Use the 'redir' program that comes with
DJGPP to capture the output as follows:

redir -o gcc.out -eo gcc -v ... hiworld.c

Then post the contents of 'gcc.out'.

-- 
--------------------------------------------------------------------------
| John M. Aldrich, aka Fighteer I    |         fighteer AT cs DOT com           |
| Plan:  To find ANYONE willing to   |  Web Page: <under construction>   |
| play Descent 2 on DWANGO!          |  Tagline: <this space for rent>   |
--------------------------------------------------------------------------

- Raw text -


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