This Atom package allows you to compile and run C++ and C within the editor.
To compile C or C++, press F5 or right click the file in tree view and click
Compile and Run.
To compile C or C++ and attach the GNU Debugger, press F6 or right click the file in tree view and click
Compile and Debug.
This package relies on a C / C++ compiler (gcc).
The GNU Compiler Collection may come with your distribution. Run
which gcc g++ to find out.
If that command does not output
you will need to install it.
For RHEL-based distros, run
sudo dnf install gcc gcc-c++.
For Debian-based distros, run
sudo apt install gcc g++.
For Arch-based distros, run
sudo pacman -S gcc.
You'll need to install XCode.
# to start, you must fork this projectgit clone https://github.com/<your username>/atom-gpp-compiler.gitcd atom-gpp-compilerrm -rf ~/.atom/packages/gpp-compilernpm install # this will install developer dependencies (eslint)apm link # this will create a symbolic link from this directory to ~/.atom/packagesgit checkout -b my-changes # this will create a new branch, change `my-changes` to something else# make your changesnpm test # this will eslint `index.js`, if this gives you any errors, fix them# test your changes in Atom, because you ran `apm link`, this package will automatically loadgit add .git commit -m "added a feature"git push# go to <your username>/atom-gpp-compiler.git and click `Create Pull Request`
Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.