Discussion Locked

C++ on Caldera Linux

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

When I try to compile a simple C program
I get an error message
"File stdio.h not found"
Follwoing is the code

# include
main()
{ printf("Hello world");
}

Do I have to make any path settings or compiler options for "gcc" while compiling.

Dhananjay
dhananjay@www.com

5 replies

by noodle

Most of the standard header files are located in the directory "/usr/include/" and thats where stdio.h should be located. You can use the the command "ls /usr/local/stdio.h" to check whether it is present.
If not you'll need to upgrade your libc.heres the method from calderas site for upgrading. It notes and error they have patched the incorrectly places some header files.
Hope this helps!

This discussion is closed to new replies.