Follow us on...
Follow us on Twitter Follow us on Facebook
Register
Results 1 to 6 of 6
  1. #1
    bdr00 is offline Registered User
    Join Date
    Mar 2002
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Compiling errors (stdio.h not found)

    hi,

    i am trying to compile jhead for osx, i have installed developer tools to get cc/make working ... but when i try to compile i get the errors:

    > header file 'stdio.h' not found

    i had a poke around in /usr/lib/ but couldn't find it? has something gone wrong with my cc install or is it hidden somewhere else where i need to set some enviroment variables???

    thanks a lot for your help...

    ben

  2. #2
    Fusengammu is offline Registered User
    Join Date
    Mar 2002
    Location
    Kyoto, Japan
    Posts
    28
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Check /Developer/Documentation/DeveloperTools/Compiler
    directory for documentation.

    file://localhost/Developer/Documentation/DeveloperTools/Compiler/Compiler.d.html#pgfId=5068

    This one has docs on #include paths

  3. #3
    slur's Avatar
    slur is offline Geek / Hedonist
    Join Date
    Dec 2000
    Location
    Florence, MA
    Posts
    542
    Thanks
    0
    Thanked 1 Time in 1 Post

    a question

    Are you compiling with cc in the Terminal, or in ProjectBuilder?
    |
    | slur was here
    |

    check out my creative music software

  4. #4
    bdr00 is offline Registered User
    Join Date
    Mar 2002
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts
    in the terminal...

  5. #5
    slur's Avatar
    slur is offline Geek / Hedonist
    Join Date
    Dec 2000
    Location
    Florence, MA
    Posts
    542
    Thanks
    0
    Thanked 1 Time in 1 Post

    What I just tested...

    I just tried compiling this and it worked:

    #include <stdio.h>

    int main(int argc, char *argv[])
    {
    printf ("Hello World!\n");
    }


    I found stdio.h living in the /usr/include directory. There was nothing special about my environment; there was no reference to an include directory. Likewise there was no reference to an include directory in my ~/.MacOSX/environment.plist file.

    It sounds like there's something amiss on your system, but I'm not sure what it might be.
    |
    | slur was here
    |

    check out my creative music software

  6. #6
    lethe is offline Registered User
    Join Date
    Oct 2001
    Location
    US
    Posts
    689
    Thanks
    0
    Thanked 0 Times in 0 Posts
    try this
    Code:
    touch include/stdio.h

 

 

Similar Threads

  1. glib errors when compiling libIDL-0.6.8
    By kilowatt in forum Software Programming & Web Scripting
    Replies: 3
    Last Post: January 10th, 2005, 04:34 PM
  2. Kernel/sys/socket.h can not be found
    By ravenwaver in forum Software Programming & Web Scripting
    Replies: 0
    Last Post: June 2nd, 2002, 12:06 PM
  3. Problems compiling ncurses
    By Fahrvergnuugen in forum Mac OS X System & Mac Software
    Replies: 3
    Last Post: April 15th, 2002, 12:47 AM
  4. Compiling iceS for icecast errors
    By bluehz in forum Software Programming & Web Scripting
    Replies: 0
    Last Post: February 19th, 2002, 05:24 AM
  5. Errors compiling pthread (for mysql) on Mac OS X Server
    By Someone Else in forum Mac OS X System & Mac Software
    Replies: 0
    Last Post: June 12th, 2001, 11:26 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •