(no subject)

Hi,

I have installed Clang on Ubuntu 32 bit machine.
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 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)

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

Suneel

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