Compiling C programs on Ubuntu 12.04

view story

http://askubuntu.com – I'm an absolute beginner at writing programs in C, and I'm having difficulty compiling a simple Hello, world program. Here's my code: /* This code is a .c file that prints out the words hello, world. */ include int main() { printf("Hello World! \n"); } Here's the error I get when compiling: Ubuntu:~/Desktop/cFiles$ gcc -Wall hello.c -o hello.out -lmls hello.c:5:1: warning: return type defaults to ‘int’ [-Wreturn-type] hello.c: In function ‘main’: hello.c:7:3: warning: implicit declaration of function ‘print’ [-Wimplicit-function-declaration] hello.c:8:1: warning: contr (HowTos)