If everything is installed correctly, you should get some lines that shows the version and other details of the installed gcc.Ĥ- Install eclipse from (preferably select the version for C/C++).ĥ- Open eclipse and set up a workspace directory somewhere on your disk.Ħ- Create a new project in eclipse: file>new>C Project. Install “Command Line Tools” (click the install button in front of this choice).ģ- To make sure that gcc is installed, open a Terminal and key in: gcc -v In Xcode menu bar, go to Xcode>preferences. So, do the following to make sure that gcc is installed. Search Xcode in “App Store” and follow steps to install it.Ģ- However, installing Xcode does not necessarily mean gcc is installed.
So, please follow the following steps if you have this problem:ġ- easiest way to install C/C++ is installing gcc through Xcode in Mac. Therefore, I am leaving this piece of note here for other people to use and describe the easy! problem of making GCC and eclipse work together in Mac OSX. Today, I was trying to develop C/C++ code in Mac OS using eclipse. However, I could not find any resource that properly tells me how to install gcc in mac as a prerequisite for developing C/C++ code in eclipse.