[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Can't find header files.



On Monday 13 November 2006 12:16, Amit Joshi wrote:
> I recently installed gcc and Anjuta for C programming.
> All dependencies have been installed.
>
> So whenever I try to compile a program, it returns an error saying:
> Error: stdio.h: Can't find file or directory.
>
> Never experienced such a problem before.
> I am using Etch and my program versions are as follows:
>
> gcc-3.3-base/testing uptodate 1:3.3.6-13
> gcc/testing uptodate 4:4.1.1-13
> gcc-4.1/testing uptodate 4.1.1-19
> gcc-3.4-base/testing uptodate 3.4.6-4
> gcc-4.1-base/testing uptodate 4.1.1-19
> libgcc1/testing uptodate 1:4.1.1-19
>
>
> anjuta-common/testing uptodate 1:1.2.4a-4
> anjuta/testing uptodate 1:1.2.4a-4
>
>
> Anybody experiencing similar problems?

I also tried searching for stdio.h using locate. (did updatedb too)

It returned the following results: 

/mnt/winc/cygwin/usr/include/stdio.h
/mnt/winc/cygwin/usr/include/sys/stdio.h
>> /usr/lib/gcc/i486-linux-gnu/4.1.2/include/ssp/stdio.h  <<
/usr/lib/perl/5.8.8/CORE/nostdio.h


I tried adding the /usr/lib/gcc/i486-linux-gnu/4.1.2/include/ssp/ path to my 
anjuta settings, but still it returns the same error. 

I guess the problem is with gcc itself. 
-- 
Regards, 
Amit. 

Remember fellas, what we do in life echoes in eternity! 



Reply to: