468,513 Members | 1,403 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,513 developers. It's quick & easy.

"unable to include stdio.h" error on compilation

Iam unable to complie my c programs? it shows out an error as "unable to include stdio.h" what to do,i feel that there is some problem in my computer what is the rectification?
Dec 13 '07 #1
2 7220
Laharl
849 Expert 512MB
What compiler are you running? You may need to reinstall it...
Dec 13 '07 #2
weaknessforcats
9,207 Expert Mod 8TB
Are you able to find stdio.h on your computer??

If so, then you may have directory problem.

When you #include <stdio.h>, the angle brackets tell the preprocessor that the file is located on a pre-defined path. These paths are the "standard places" and are part of your build project settings. If the paths are not correct, you will get an "unable to open stdio.h".

When you #include "stdio.h", the double quotes tell the preprocessor that the file is located in the present working directory (PWD). This is usually the directory that contains your project files. If the file is not there, then the search for it proceeds as if you coded #include <stdio.h>.
Dec 13 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

3 posts views Thread by Stephen Ferg | last post: by
reply views Thread by Peter O'Reilly | last post: by
2 posts views Thread by Harrie Verveer | last post: by
3 posts views Thread by GMiller | last post: by
reply views Thread by NPC403 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.