missing stdio.h

Discussion in 'Mac Programming' started by ltz47, Oct 21, 2005.

  1. macrumors newbie

    Joined:
    Oct 21, 2005
    #1
    I am trying to learn to program in 'c'.
    Downloaded xcode development tools, installed those along with gcc compiler 3.3 and 4.0
    When I try to compile a program that includes the statement #include <stdio.h> I get an error message, that it cannot find the file.
    Using terminal, and searching around, I navigated to /usr/include/gcc/darwin - there are 3 directories, 3.3, 3.3-fast, 4.0.
    These directories include various .h files such as stdint.h, etc. but no stdio.h - can anyone suggest what I should do next?
    Thanks!
     
  2. macrumors member

    teh_pwnerer

    Joined:
    Oct 17, 2005
    #2
    ltz47,
    Doesn't sound like the dev tools installed properly.. There should definately be C library header files in /usr/include.
     
  3. macrumors 6502a

    Whyren

    Joined:
    Jun 3, 2004
    Location:
    east of the West and west of the East
    #3
    Is that file in /usr/include/ ?. That's where the file would be, not in /usr/include/gcc/darwin/.... What kind of project are you trying to build in? Standard tool, or something else?
     
  4. thread starter macrumors newbie

    Joined:
    Oct 21, 2005
    #4
    Did an additional installation

    The file was not anywhere on the disk but I then installed several other development tools including bsdsdk and x11sdk and one of those had the file.
    Thanks.
     

Share This Page