https://github.com/rubyonworld/atom-gpp-compiler
This Atom package allows you to compile and run C++ and C within the editor.
https://github.com/rubyonworld/atom-gpp-compiler
atom compiler gapp
Last synced: 11 months ago
JSON representation
This Atom package allows you to compile and run C++ and C within the editor.
- Host: GitHub
- URL: https://github.com/rubyonworld/atom-gpp-compiler
- Owner: RubyOnWorld
- Created: 2022-09-06T13:50:03.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2022-09-12T14:24:40.000Z (almost 4 years ago)
- Last Synced: 2025-05-19T20:32:59.875Z (about 1 year ago)
- Topics: atom, compiler, gapp
- Language: JavaScript
- Homepage:
- Size: 88.9 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# gpp-compiler
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`.
## Dependencies
This package relies on a C / C++ compiler (gcc).
### Linux
The GNU Compiler Collection may come with your distribution. Run `which gcc g++` to find out.
If that command does not output
```
/usr/bin/gcc
/usr/bin/g++
```
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`.
### Windows
You'll need to install [MinGW](http://www.mingw.org/) and [add it to your PATH](http://www.howtogeek.com/118594/how-to-edit-your-system-path-for-easy-command-line-access/).
### Mac
You'll need to install [XCode](https://developer.apple.com/xcode/).
## Contributing
```bash
# to start, you must fork this project
git clone https://github.com//atom-gpp-compiler.git
cd atom-gpp-compiler
rm -rf ~/.atom/packages/gpp-compiler
npm install # this will install developer dependencies (eslint)
apm link # this will create a symbolic link from this directory to ~/.atom/packages
git checkout -b my-changes # this will create a new branch, change `my-changes` to something else
# make your changes
npm 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 load
git add .
git commit -m "added a feature"
git push
# go to https://github.com//atom-gpp-compiler.git and click `Create Pull Request`
```