How to install Packages required to compile a C program in Ubuntu 8.04??
Asked by
s.arivoli
I keep trying to compile a simple program using the gcc compiler. It won't work. I specifically type in: gcc -o hello hello.c. I get an error reading:
hello.c:2:19: error: stdio.h: No such file or directory
hello.c:4:19: error: stlib.h: No such file or directory
hello.c: In function ‘main’:
hello.c:8: warning: incompatible implicit declaration of built-in function ‘printf’
Even I've tried out "sudo apt-get install build-essential
Please help me out.
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- s.arivoli
- Solved:
- Last query:
- Last reply:
To post a message you must log in.