Thread: getting error "unable to open include stdio.h

  1. #1
    Registered User
    Join Date
    Dec 2007
    Posts
    9

    Unhappy getting error "unable to open include stdio.h

    hii,
    whenever i compile ny program i get an error "unable to open include file 'stdio.h'
    i have made changes in the directory also...but still it doesnot work
    im getting this same message all the time...plz i need help
    can anyone help me.

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    Well you could begin by telling us which compiler you're trying to use.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    What environment (compiler, OS, etc) is this in? Where is your stdio.h coming from [if you know]?

    Essenitally, you have either not installed the compiler environment correctly, or the header files you need aren't installed, or something else is wrong.

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  4. #4
    Registered User
    Join Date
    Dec 2007
    Posts
    9
    it's IDE
    nd i donno frm where stdio.h is coming

  5. #5
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    Quote Originally Posted by coolgal View Post
    it's IDE
    nd i donno frm where stdio.h is coming
    IDE stands for "Integraded Developer Environment", and is answering the question like "What car are you driving" with "An estate".

    What IDE is it? Which compiler does it use?

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  6. #6
    Registered User
    Join Date
    Dec 2007
    Posts
    9
    im new to c programming
    nd all tht i know is tht it's turbo c

  7. #7
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    Quote Originally Posted by coolgal View Post
    im new to c programming
    nd all tht i know is tht it's turbo c
    Bleigh! That is a compiler that was modern when I started with C in 1986 or so.

    At least we're getting somewhere. Did you do a full installation? What directory did you install into?

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  8. #8
    Registered User
    Join Date
    Dec 2007
    Posts
    9
    it's C:\TURBOC~1

  9. #9
    Registered User
    Join Date
    Dec 2007
    Posts
    9
    yess i did a full installation

  10. #10
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    Quote Originally Posted by coolgal View Post
    it's C:\TURBOC~1
    Ehm, perhaps you want to use a name that fits in the "dos 8.3 format". E.g. c:\turboc

    The ~1 tells me that the name is longer [or otherwise different in ways that doesn't comply with the standard 8.3 format] than that. It may well be the cause if the problems you experience.

    --
    mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  11. #11
    Registered User
    Join Date
    Dec 2007
    Posts
    9
    how can i overcome this problem????

  12. #12
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    Quote Originally Posted by coolgal View Post
    how can i overcome this problem????
    The simple solution is to re-install in a directory that is shorter than 8 letters [and no spaces or other "funny" characters].

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  13. #13
    Registered User
    Join Date
    Dec 2007
    Posts
    9
    I Still Cant Overcome This Problem???

  14. #14
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    So where did you install to now?

    And where are your file that you are compiling?

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  15. #15
    Deathray Engineer MacGyver's Avatar
    Join Date
    Mar 2007
    Posts
    3,210
    How about you get rid of Turbo C since it sucks when compared with today's standards, and then get a real compiler?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Big help in Astar search code...
    By alvifarooq in forum C++ Programming
    Replies: 6
    Last Post: 09-24-2004, 11:38 AM
  2. Headers that use each other
    By nickname_changed in forum C++ Programming
    Replies: 7
    Last Post: 10-03-2003, 04:25 AM
  3. help with finding lowest number entered
    By volk in forum C++ Programming
    Replies: 12
    Last Post: 03-22-2003, 01:21 PM
  4. #includes don't seem to be working
    By Inquirer in forum C++ Programming
    Replies: 12
    Last Post: 08-05-2002, 05:38 PM
  5. Ghost in the CD Drive
    By Natase in forum A Brief History of Cprogramming.com
    Replies: 17
    Last Post: 10-12-2001, 05:38 PM