views:

186

answers:

2

I have an iPod touch and iPad with gcc installed on them. However, everytime I try to compile my programs they always fail. I am trying to write c programs for the terminal, not GUI. I am missing the standard c/c++ libraries (stdio.h, etc.). Can anyone tell me where I can find these libraries?

A: 

You can't write command-line programs for the official iOS SDK.

Graham Lee
I'm looking to write apps for jail broken devices
romejoe
A: 

On my system, with a vanilla install, the headers are here:

/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.0.sdk/usr/include/ /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.2.sdk/usr/include/

And the libraries are here:

/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.0.sdk/usr/lib/ /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.2.sdk/usr/lib/

Edit:

The headers are not on the device. You will have to copy them over. The libraries should all be on the device.

drawnonward
This is working thanks except now I'm getting a linking error
romejoe
You could start a new question with more details about the new error.
drawnonward