GCC not finding stdio.h library

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • legzito
    New Member
    • Oct 2014
    • 1

    GCC not finding stdio.h library

    I wrote a program, a simple one that prints hello. Yet the gcc compiler cannot run it. It flags the #include <stdio.h> line, saying,
    /home/lexito/Desktop/try.c|2|fatal error: stdio.h: No such file or directory|
    ||=== Build failed: 1 error(s), 0 warning(s) (0 minute(s), 0 second(s)) ===|
  • weaknessforcats
    Recognized Expert Expert
    • Mar 2007
    • 9214

    #2
    Please post the actual code.

    It should look like:

    Code:
    #include <stdio.h>
    If the code looks like the above, verify that there is an stdio.h file on your computer.

    If the file is there, then check the settings for your compiler where the directories to search by the compiler have PATH to your file.

    Post again if you cannot resolve this.

    Comment

    Working...