[cfe-users] (no subject)

Ben Pope benpope81 at gmail.com
Tue Dec 3 18:33:03 PST 2013


On 03/12/13 21:22, Venkata Suneel Kota wrote:
> Hi,
> 
> 
> I have installed Clang on Ubuntu 32 bit machine.

What version of Ubuntu?

What version of Clang?

Where did this clang come from?

> when i compile a file (main.c), I get the following message
> 
> *cwd.c:1:10: fatal error: 'stdio.h' file not found*
> *#include <stdio.h>*
> *         ^*
> *1 error generated.*

I think you're missing libc6-dev

> I removed stdio.h and other printf() lines in my code now i get the
> following error
> 
> */usr/bin/ld: cannot find crt1.o: No such file or directory*
> */usr/bin/ld: cannot find crti.o: No such file or directory*
> */usr/bin/ld: cannot find crtbegin.o: No such file or directory*
> */usr/bin/ld: cannot find -lgcc*
> */usr/bin/ld: cannot find -lgcc_s*
> *clang: error: linker command failed with exit code 1 (use -v to see
> invocation)*

You're missing gcc runtimes.

> did i miss some thing?
> Let me know how to proceed...

sudo apt-get install build-essential

Ben





More information about the cfe-users mailing list