Ways to Setup Mac for C++ Programming

Not a lot of ways but Windows is recommended for any type of C/C++ development

Code  on Mac
Photo by Maxwell Nelson on Unsplash
  1. Installing the Xcode Command Line Tools and using any preferred IDE or Code Editor for writing C or C++ code

1. Installing Xcode:

Xcode is an IDE developed by Apple themselves to develop apps for macOS and iOS or all other Operating Systems that Apple develops. It also has support for C/C++ built-in. So after downloading Xcode ( Doesn’t matter if you download it through the mac app store or the official developer website ) and opening it you will be greeted by this screen:

Step 1
Step 1
Step 2
Step 2
Step 3
Step 3
Step 4
Step 4

2. Installing the Xcode Command Line Tools and using any preferred IDE or Code Editor for writing C or C++ code:

Now comes the next method, Now in this method we need to use the Terminal as we need to download and install only some part of Xcode and not the entire Xcode. This method is useful if you have limited storage or for some other reason. We will be downloading the 2GB part of Xcode rather than the entire 28GB Xcode as we only need the C and C++ compiler.

Conclusion:

Though it is possible to run C and C++ on Mac as Windows as well as the C and C++ languages are managed by Microsoft so it is better to recommend Windows as an operating system to develop C and C++ applications

I am a Programmer who also likes to write. https://www.instagram.com/nibodhdaware/

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store