Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Oct 21, 2005, 09:02 PM   #1
ltz47
macrumors newbie
 
Join Date: Oct 2005
missing stdio.h

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!
ltz47 is offline   0 Reply With Quote
Old Oct 22, 2005, 03:51 AM   #2
teh_pwnerer
macrumors member
 
Join Date: Oct 2005
Send a message via AIM to teh_pwnerer
ltz47,
Doesn't sound like the dev tools installed properly.. There should definately be C library header files in /usr/include.
teh_pwnerer is offline   0 Reply With Quote
Old Oct 22, 2005, 03:37 PM   #3
Whyren
macrumors 6502a
 
Whyren's Avatar
 
Join Date: Jun 2004
Location: east of the West and west of the East
Send a message via AIM to Whyren
Quote:
Originally Posted by ltz47
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!
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?
__________________
Before a brilliant person begins something great, they must look foolish in the crowd.

QS02 800MHz G4 + 768 RAM + 300 GB HD + NVidia GeForce4 MX
2G 10 GB iPod + 512 shuffle
last.fm + music mobs + itunes registry
Whyren is offline   0 Reply With Quote
Old Oct 25, 2005, 05:53 PM   #4
ltz47
Thread Starter
macrumors newbie
 
Join Date: Oct 2005
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.
ltz47 is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
3G Missing. s3rh47 iOS 7 10 Jan 30, 2014 03:21 AM
Resolved: What am I missing? Tander iPhone/iPad Programming 1 Jan 7, 2014 05:10 AM
What am I missing here? emvp iPhone 16 Nov 27, 2012 10:26 AM
What's missing that you still want? Apple... iOS 6 106 Jul 26, 2012 11:10 AM
Am I missing something? brock2621 iPhone 61 Jul 19, 2012 02:33 PM

Forum Jump

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

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC