C++ compile and run in OS X


Is there a way/package to compile and run C++ programs on atom in OS X ?
While using atom in Windows, it was quite simple, just write the C++ program and press F5 for compile and run. Is it possible on OS X? Any advice would be really helpful because I am completely new to atom/C++. I’v tried number of packages on OS X, but none of them seem to work for me.


Have you tried the build package?


Yeah I tried but it shows this error.