I installed the last version of Ubuntu. I tried to compile and run simple c program. I was get error:

fatal error: stdio: No such file or directory

I installed and updated gcc compiler few times, and I still get this error. Can anybody help me please? I put here the video record, there you can see my documents folder with libraries: http://screencast.com/t/Vi5b7cXnZ

  • 2
    Could you share what you are trying to compile, what you type when you compile it and what you see after in text rather then a movie? – Nanne Nov 25 '12 at 20:53
  • Sounds like you don't have the library. Did you install build-essential? – Larry Price Nov 25 '12 at 21:40
  • Though not really unclear--even just in the error message there was enough information to find the solution--I suppose we shouldn't reopen this, since it's a programming question that isn't specifically related to Ubuntu. (Writing stdio.h as just stdio should be expected to produce an error with compilers on other platforms such as Windows, too.) – Eliah Kagan Jul 21 '17 at 13:30

I looked at your video and saw the problem in your program source. The reason you are getting this error is because you are using:

#include <stdio>
#include <stdlib>

You should be using:

#include <stdio.h>
#include <stdlib.h>

..use these corrections in your program and it should now compile.

| improve this answer | |

Not the answer you're looking for? Browse other questions tagged or ask your own question.