Mail Archives: djgpp/1998/04/16/23:16:34
Barry Flanagan wrote:
>
> Hi,
>
> Please could you help me with two problems I have when using the gcc command
> to compile my source code to a .exe file.
>
> No Input files
>
> No include path in which to find stdio.h
>
> The first error could be the way I have my directories setup whereby the
> gcc.exe can't find my file to be made into a .exe file.
>
> I would greatly appreciate some help on this as I am a beginner to the C
> program.
These are insufficient details to help. However, I've never seen those
error messages coming from gcc, so the first thing I would look for is
having programs from a different compiler somewhere on your PATH.
The second thing I would look for is an incorrect setting of the DJGPP
environment variable. DJGPP comes with instructions, in the form of
'readme.1st', if you haven't read it, I suggest you do so. Also make
sure that you have NOT altered 'djgpp.env' in any way.
If these ideas don't help, please post a _small_ source file that
generates the errors, along with a copy of the output of gcc when
invoked with the '-v' parameter; i.e.:
redir -o gcc.log -eo gcc -Wall -v -o myprog.exe myprog.c
Then post the file 'gcc.log'. It would also help to see your
environment, as shown by "set > environ.lst". Further instructions on
posting a system report can be found in chapter 6.12 of the DJGPP
Frequently Asked Questions list (v2/faq210b.zip from SimTel or online at
http://www.delorie.com/djgpp/v2faq/).
hth
--
---------------------------------------------------------------------
| John M. Aldrich | "To be 'matter of fact' about the |
| aka Fighteer I | world is to blunder into fantasy-- |
| mailto:fighteer AT cs DOT com | and dull fantasy at that, as the real|
| http://www.cs.com/fighteer | world is strange and wonderful." -LL |
---------------------------------------------------------------------
- Raw text -