I am having a problem in C

Asked by Rashid

Hi,
     After compilation in C I get the following error message.
c:22:19: error: stdio.h: No such file or directory

Rashid

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Henning Eggers
Solved:
Last query:
Last reply:
Revision history for this message
Henning Eggers (henninge) said :
#1

This means that is cannot find and include the file that defines the STanDard Input/Output functions. This is the most common include file in C and if it is not on your system something is wrong with your installation. The file should be found in the "/usr/include" directory but you shouldn't have to mention this to the compiler since this is the standard include directory.

Try re-installing the build environment, using synaptic anything found under "development".

Revision history for this message
Gord Allott (gordallott) said :
#2

Rashid: make sure you install the 'build-essential' package. sudo apt-get install build-essential

Revision history for this message
Best Henning Eggers (henninge) said :
#3

Thanks Gord, I agree with that. I just didn't know if stdio.h was in that package.

Revision history for this message
Rashid (rashid-physics) said :
#4

Thanks Henning Eggers, that solved my question.