Ubuntu

From Hackepedia
Revision as of 23:21, 22 May 2007 by Franks (talk | contribs) (New page: I was trying to compile hello world in C: $ gcc -Wall -o hello hello.c hello.c:1:19: error: stdio.h: No such file or directory hello.c: In function ‘main’: hello.c:5: warning: imp...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

I was trying to compile hello world in C:

$ gcc -Wall -o hello hello.c 
hello.c:1:19: error: stdio.h: No such file or directory
hello.c: In function ‘main’:
hello.c:5: warning: implicit declaration of function ‘printf’
hello.c:5: warning: incompatible implicit declaration of built-in function ‘printf’

If you plan on doing any programming on ubuntu:

$ sudo apt-get install build-essential

This will install libc-dev, gcc, g++, make and dpkg-dev for C and/or C++ programming.