Want to highlight a helpful answer? Upvote!

Did someone help you, or did an answer or User Tip resolve your issue? Upvote by selecting the upvote arrow. Your feedback helps others! Learn more about when to upvote >

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Header files not found

I have a piece of code in C with header files included.

I run it on Mac OS X Maverick with XCode 4.6.2 installed. GCC is also installed. Note that Command Line Tools in XCode are already installed.


When I compile it, the error I receive says something like this:

add.c:1:19: error: stdio.h: No such file or directory

add.c:2:20: error: stdlib.h: No such file or directory

add.c:3:20: error: unistd.h: No such file or directory


However when I run it on Ubuntu, it compiles without a problem.



what to do?

iPhone 5, Windows 7

Posted on Nov 2, 2013 2:06 AM

Reply
2 replies

Header files not found

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.