Apple Intelligence is now available on iPhone, iPad, and Mac!

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

ANSI C compiler available for MacOS?

ANSI C compiler available for MacOS?....I used xCode to learn Swift... I just updated xCode after installing Catalina a month ago, but it's saying there is no compiler. I'm working a new hobby that requires some code in C. How can i verify a C compiler in on my Mac... or can I download from Apple?


In the interim, I downloaded Espresso-c V 1.2 (2020), but its got some intermittent, annoying, and behavior.


MacBook Pro 13″, macOS 10.15

Posted on Oct 24, 2020 12:38 PM

Reply
Question marked as Top-ranking reply

Posted on Oct 24, 2020 2:01 PM

Clang is the modern C/C++/Objective-C/Objective-C++ compiler installed with Xcode. There are a variety of libraries available, though not using the -std= switch will just use the default language library. The following is from Mojave.



If you had the Command Line Tools for Xcode nn installed, then you would not need the xcrun prefix.

3 replies
Question marked as Top-ranking reply

Oct 24, 2020 2:01 PM in response to bobscott

Clang is the modern C/C++/Objective-C/Objective-C++ compiler installed with Xcode. There are a variety of libraries available, though not using the -std= switch will just use the default language library. The following is from Mojave.



If you had the Command Line Tools for Xcode nn installed, then you would not need the xcrun prefix.

ANSI C compiler available for MacOS?

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