Skip to main content

Thread: compiling Hello World in C


i c , c++ going on ubuntu 11. i've been trying few hours hello world going in c. have programming experience in java , php not c or c++.

code:
#include < stdio.h>  void main() {     printf("\nhello world\n"); }
i error:
stdio.h: no such file or directory
compilation terminated.

after googling tried sudo apt-get install build-essentials no change. need put source file in specific directory?

p.s.
when running locate stdio.h get:
/usr/include/stdio.h
/usr/include/bits/stdio.h
/usr/lib/perl/5.10.1/core/nostdio.h
/usr/lib/syslinux/com32/include/stdio.h

quote posted coach mcgurk view post
i c , c++ going on ubuntu 11. i've been trying few hours hello world going in c. have programming experience in java , php not c or c++.

code:
#include < stdio.h>  void main() {     printf("\nhello world\n"); }
i error:
stdio.h: no such file or directory
compilation terminated.

after googling tried sudo apt-get install build-essentials no change. need put source file in specific directory?
it should be:
code:
#include <stdio.h>
giving space. hope helps.


Forum The Ubuntu Forum Community Ubuntu Specialised Support Development & Programming Programming Talk [SOLVED] compiling Hello World in C


Ubuntu

Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support