Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

stdio.h: No such file or directory

Status
Not open for further replies.

itmon

Programmer
Oct 13, 2005
9
KE
I've installed a gcc compiler and it's path is /usr/gnu/bin/gcc.... problem is my header file are stored in /usr/include/ ... when I trying compiling a simple hello.c program I get stdio.h: No such file or directory - What could be the problem?
 
The header files in /usr/include are probably the SCO ones, not the GNU ones. Is there a stdio.h in /usr/gnu/include? If so, try using [g]gcc -I /usr/gnu/include ...[/b]. You can probably make this a default by altering spec files or setting environment variables...

Annihilannic.
 
>Is there a stdio.h in /usr/gnu/include?

There's no stdio.h in the /usr/gnu/include. Should I download some sort of library for the GNU library?
 
Hi,

I have installed gcc on AIX :
gcc is /usr/local/bin/gcc
stdio.h is located in /usr/local/lib/gcc-lib/powerpc-ibm-aix5.2.0.0/3.3.2/include
 
>stdio.h is located in >/usr/local/lib/gcc-lib/powerpc-ibm-aix5.2.0.0/3.3.2/include

Great! I've found the include files.... in a similar path but in the /usr/gnu folder, how then do I incorporate them with the gcc command without the -l?
 
Hi,

use switch -I for directories that contains includes headers
man gcc for more infos.

Code:
gcc -I /usr/gnu/rest/of/the/path/include -o outfile your_program.c

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top