Mail Archives: djgpp/1997/11/11/09:58:53
On 9 Nov 1997, odin wrote:
> I have just installed djgpp and done the little hello.c example but when i
> type 'gcc -v hello.c -o hello.exe' a heap of stuff comes up ending with an
> error.
> _________
> cpp -lang-c -v blah blah blah blah blah blah blah...
You should *never* omit that ``blah blah'' if you want your problems
solved efficiently. What gcc prints under -v includes crucial info that
is a great help in guessing what's wrong with your installation.
> #include "..." search starts here:
> #include <...> search starts here:
> /usr/local/include
> usr/local/go32/include
> usr/local/lib/gcc-lib/go32/2.7.2.1/include
> usr/include
> end of search list.
> hello.c:1: stdio.h: No such file or directory (ENOENT)
I'd guess that you have set the DJGPP variable incorrectly. Please type
"set > env.lst" from the DOS prompt and post here the contents of file
`env.lst' thus created.
You might also consider reading section 8.1 of the DJGPP FAQ list
(v2/faq210b.zip from the same place you get DJGPP) which discusses some
frequent causes for such problems.
- Raw text -