[cfe-dev] clang : 3.4 : compiling simple c89 programs : unable to find stdio.h
Mayuresh Kathe
mayuresh at kathe.in
Fri Mar 28 08:40:00 PDT 2014
david, and the list, i'm really sorry about posing an incomplete query.
i am running ubuntu server 13.10 on my x86-64 with 4gb of system memory.
may i know which libraries i need to install other than libclang-3.4-dev
for clang-3.4 to get an environment for c89 development?
thanks,
~mayuresh
On 2014-03-28 20:27, David Chisnall wrote:
> 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