C++ Development Environment Setup on Mac

For building programs in any programming language, a proper setup usually IDE(Integrated Development Environment) is required. But for doing C++ Development an IDE is not enough as C++ is a Compiled language that first needs to be compiled to byte code so as to be executed on a Machine.
Regarding development of C++ on Mac, you need two things an IDE and a compiler usually gcc or g++. In this article, I will discuss How to setup Eclipse IDE on Mac for doing C++ development.
So far I’ve written a lot of C++ code and Eclipse is the only IDE which I’ve found to be supper easy to use on Mac for debugging/compiling C++ code.

Setting Up Eclipse on Mac for C++ Development

  1. Download Eclipse IDE for C/C++ Developers
  2. Open Eclipse dmg package downloaded from their website
  3. Follow the instructions and once Eclipse is installed an Eclipse IDE Launcher Window will show up
  4. Just Select the Workspace location where you want to store C++ Projects files
  5. Then head over to Help -> Eclipse Marketplace -> Search for “Eclipse Embedded C/C++” and click Install. This will install and activate all necessary Utilities(Like Compiler) required for C++ Development
  6. That’s it, now just click on File -> New -> Project and Click on Project
  7. After clicking on project, a window with title “New Project” will pop up from there under C/C++ section select C++ Project and then click on Next.
  8. Now a window titled “C++ Project” will show up, there enter Project Name. Select Location of Project
    • Project Type(either Empty Project or Hello World C++ Project)
    • Always select Toolchains as MacOSX GCC
    • Click Finish
  9. Finally a C++ Project have been created in Eclipse

Below I’ve explained each of 9 steps for setting up Eclipse on Mac for C++ Development with images

Download Eclipse from eclipse.org
  • Open Eclipse dmg package downloaded from their website
  • Follow the instructions and once Eclipse is installed an Eclipse IDE Launcher Window will show up
Eclipse IDE Launcher
  • Just Select the Workspace location where you want to store C++ Projects files
Selecting location where C++ project will be stored Eclipse IDE
  • Then head over to Help -> Eclipse Marketplace -> Search for “Eclipse Embedded C/C++” and click Install. This will install and activate all necessary Utilities(Like Compiler) required for C++ Development
Installing C/C++ Extension from Eclipse Marketplace
  • That’s it, now just click on File -> New -> Project and Click on Project
Making a new project in Eclipse IDE
  • After clicking on project, a window with title “New Project” will pop up from there under C/C++ section select C++ Project and then click on Next.
Creating a new C++ Project in Eclipse IDE
  • Now a window titled “C++ Project” will show up, there enter Project Name.
    • Select Location of Project
    • Project Type(either Empty Project or Hello World C++ Project)
    • Always select Toolchains as MacOSX GCC
    • Click Finish
Selecting location, Project Type and Toolchains type for a new C++ Project in Eclipse IDE
  • Finally a C++ Project have been created in Eclipse
C++ Project in Eclipse IDE

Final Thoughts

Setting up Eclipse IDE on MAC for doing C++ Development is super easy, as I’ve explained above. But if in case you encounter any issue during installing and setup of Eclipse on Mac for doing C++ Development, then please let me know in comments below. I’ll try to reply as soon as possible.

Gagan

Hi, there I'm founder of ComputerScienceHub(Started this to bring useful Computer Science information just at one place). Personally I've been doing JavaScript, Python development since 2015(Been long) - Worked upon couple of Web Development Projects, Did some Data Science stuff using Python. Nowadays primarily I work as Freelance JavaScript Developer(Web Developer) and on side-by-side managing team of Computer Science specialists at ComputerScienceHub.io

Leave a Reply

Your email address will not be published. Required fields are marked *

Recent Posts