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

Mayuresh Kathe mayuresh at kathe.in
Fri Mar 28 07:34:18 PDT 2014


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




More information about the cfe-dev mailing list