[cfe-dev] clang : 3.4 : compiling simple c89 programs : unable to find stdio.h

David Chisnall David.Chisnall at cl.cam.ac.uk
Fri Mar 28 07:57:41 PDT 2014


This is not a clang question, it's a question about whatever your operating system is.  On FreeBSD, for example, these files are installed by default.  On OS X they're installed when you install the XCode command-line tools.  Without knowing what your OS is, no one can help you...

David

On 28 Mar 2014, at 14:34, Mayuresh Kathe <mayuresh at kathe.in> wrote:

> hello,
> 
> sorry about harranging the list with trivial stuff such as this, but, i
> tried to go step by step and wrote the simplest of c programs, the usual
> "hello, world!".
> 
> //--------------------------------
> #include <stdio.h>
> 
> int main(void) {
> 	printf("Hello, World!\n");
> 
> 	return 0;
> }
> //--------------------------------
> 
> while compiling it using "clang hello.c", it gave the following error;
> hello.c:1:10: fatal error: 'stdio.h' file not found
> #include <stdio.h>
>         ^
> 1 error generated.
> 
> as a response, i installed 'libclang-3.4-dev' but it still gave the same
> error message.
> 
> may i know which other libraries i need to install?
> at the moment, only for c89 code (i'll approach objc 2 later).
> 
> thanks,
> 
> ~mayuresh
> 
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev





More information about the cfe-dev mailing list