Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8035565
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T02:20:57+00:00 2026-06-05T02:20:57+00:00

I have updated to Xcode to v4.2.1 from v3 and it works fine but

  • 0

I have updated to Xcode to v4.2.1 from v3 and it works fine but as a C newbie I want to code in Text Wrangler and compile with gcc in the CLI.

gcc returns ‘command not found’ for some reason now (it worked fine earlier)

After some googling I figured out gcc was moved to /Developer/usr/bin from /usr/bin (I can see it there).
Now gcc runs when I use the exact path but it can’t find any of the header files.

my-MacBook-Pro:Desktop user$ /Developer/usr/bin/gcc -o program  program.c 
program.c:15:19: error: stdio.h: No such file or directory
program.c:16:18: error: math.h: No such file or directory
program.c:17:20: error: stdlib.h: No such file or directory
program.c: In function ‘main’:
program.c:33: warning: incompatible implicit declaration of built-in function ‘malloc’
program.c:35: warning: incompatible implicit declaration of built-in function ‘sqrt’
program.c:44: warning: incompatible implicit declaration of built-in function ‘printf’
program.c:65: warning: incompatible implicit declaration of built-in function ‘printf’

Any help is greatly appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T02:20:58+00:00Added an answer on June 5, 2026 at 2:20 am

    In Xcode 4.3+ the ‘Command Line Tools’ package is not installed by default. You can download it in Preferences -> Downloads. Note that you need Lion.

    EDIT:

    In Xcode < 4.3 the Command Line Tools is included in the Xcode install, so the above solution doesn’t apply.

    However, try using xcode-select: http://developer.apple.com/library/mac/#documentation/Darwin/Reference/ManPages/man1/xcode-select.1.html

    EDIT 2:
    Install Command Line Tools for Xcode from the downloads section on the Apple dev site.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have updated my jSon object using the code <script type=text/javascript > jQuery(document).ready(function($){ var
I have updated many records already, but when it came to a word that
I have updated my android-sdk-package from r16 to r17. I have updated the Eclipse
I have updated my symfony version to 2.0.12 version. But I have this error
I have updated code for ActiveX functionality which already installed on client(in their Windows
Okay I have updated my code quite a bit. I am getting a new
I have following code (now compilable, thanks to @LokiAstari): To compile the following piece
I have updated my Xcode and suddenly all Buttons, which are connected in the
I have developed a Cocos2d-X app with XCode which works perfectly when I launch
I have updated my libraries, and now e-mails are sent without subject. I don't

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.