image
image

Go Back   macosx.com > Mac Help Forums > Mac OS X System & Mac Software

Reply
 
LinkBack Thread Tools
  #1  
Old March 6th, 2002, 04:12 PM
Registered User
 
Join Date: Mar 2002
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
bdr00 is on a distinguished road
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
Reply With Quote
  #2  
Old March 9th, 2002, 11:50 AM
Registered User
 
Join Date: Mar 2002
Location: Kyoto, Japan
Posts: 28
Thanks: 0
Thanked 0 Times in 0 Posts
Fusengammu is on a distinguished road
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
Reply With Quote
  #3  
Old March 14th, 2002, 04:13 AM
slur's Avatar
Geek / Hedonist
 
Join Date: Dec 2000
Location: Florence, MA
Posts: 542
Thanks: 0
Thanked 0 Times in 0 Posts
slur is on a distinguished road
a question

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

check out my creative music software
Reply With Quote
  #4  
Old March 14th, 2002, 05:22 AM
Registered User
 
Join Date: Mar 2002
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
bdr00 is on a distinguished road
in the terminal...
Reply With Quote
  #5  
Old March 14th, 2002, 02:41 PM
slur's Avatar
Geek / Hedonist
 
Join Date: Dec 2000
Location: Florence, MA
Posts: 542
Thanks: 0
Thanked 0 Times in 0 Posts
slur is on a distinguished road
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
Reply With Quote
  #6  
Old April 12th, 2002, 05:43 PM
Registered User
 
Join Date: Oct 2001
Location: US
Posts: 689
Thanks: 0
Thanked 0 Times in 0 Posts
lethe is on a distinguished road
try this
Code:
touch include/stdio.h
Reply With Quote
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Forum Jump

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


All times are GMT -5. The time now is 01:27 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0 RC1
Copyright 2000-2010 DigitalCrowd, Inc.