Ubuntu: Difference between revisions
From Hackepedia
Jump to navigationJump to search
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... |
No edit summary |
||
Line 11: | Line 11: | ||
This will install libc-dev, gcc, g++, make and dpkg-dev for C and/or C++ programming. | This will install libc-dev, gcc, g++, make and dpkg-dev for C and/or C++ programming. | ||
If you intend on programming, you will probably want the development man pages installed. | |||
For example, I couldn't find the simple functions: | |||
$ man scanf | |||
No manual entry for scanf | |||
$ sudo apt-get install manpages-dev |
Revision as of 00:34, 23 May 2007
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. If you intend on programming, you will probably want the development man pages installed. For example, I couldn't find the simple functions:
$ man scanf No manual entry for scanf
$ sudo apt-get install manpages-dev