gcc not working in my system

Asked by Hari

Sir,
  I am using the new version of Ubuntu 7.04 . I am not able to compile my program. Its not able to include any header files like stdio.h ect. My system is AMD Athlon 2000 with a 32 bit processor. Please help me to solve the problem. I have installed various linux distributions but have not faced such a problem.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Hanusz leszek
Solved:
Last query:
Last reply:
Revision history for this message
Hari (kthari85) said :
#1

My mail id is <email address hidden> . I foget to add it.

Revision history for this message
Best Hanusz leszek (leszek-skynet) said :
#2

Hello,

You need to install the build-essential package to be able to compile on Ubuntu.

Please type the following in a terminal:
sudo apt-get install build-essential

Revision history for this message
Hari (kthari85) said :
#3

Tank You sir.
Thank you.

Let me know another thing that whats is the header file for the graphics in C?
Can u help me?

Revision history for this message
Cesare Tirabassi (norsetto) said :
#4

If you mean 3d graphics using OpenGL then it is glx.h (the OpenGL extension to the X window system).
Note that you are free to open as many questions as you want instead of keeping adding questions to old ones.
It is also reccomended as this may help other users with the same problems.

Revision history for this message
arj (arjpandey) said :
#5

whenever i try and compile a c program.
it says that the library files was not found.

Revision history for this message
Hanusz leszek (leszek-skynet) said :
#6

arj, you should create another question instead of adding a comment to another question.