Mail Archives: djgpp/1996/08/28/21:07:14
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 -