An useful g++ interface, to run easily C/C++ code on Linux and Windows.
Project description
ggpp - An Useful g++ Interface
Table of Contents
About
"ggpp" is a simple g++ interface made with python3, it is useful to run C/C++ code in only one command.
So, instead of:
g++ example.cpp -o example
./example
And sometimes you don't want the compiled file. So, you also do:
rm -rf example
All theses steps, can be reduced with ggpp to:
ggpp example.cpp
And you will run your C/C++ code without (optionally) leaving a compiled file on the folder.
Getting Started
Install ggpp is very simple.
Prerequisites
You will need python3 installed on your PC.
For Python 3 installation, download on the official page.
- Python 3 is already installed on the most linux distributions.
Try run "python3
" on your shell.
As the ggpp is a g++ interface, you will need it installed too.
As a plus, if you want to copy the content of you C/C++ code automatically after ran it, you will need xclip installed on linux.
For install it, you can follow this useful guide.
On Windows, to copy the content, you don't need any prerequisites.
Installing
Download or clone this repository
git clone https://github.com/davigsousa/ggpp.git
Then, open the repository folder
cd ggpp
And run pip3 to install the package.
pip3 install .
Now, restart your shell and you will be able to use ggpp, try:
ggpp --help
Usage
You can run your C/C++ code,
just passing the filename as first argument. On Windows, you need file path, like: .\targetfile.cpp
ggpp targetfile.cpp
You can also pass arguments to the g++ just passing in the end.
ggpp targetfile.cpp -Wall -H
Currently, there are two arguments to configure ggpp,
they are "-c" or "--clip" to copy file content to the clipboard (xclip is required on linux),
And "-nr" or "--noremove" to make ggpp do not remove the compiled file.
Usage:
ggpp example.cpp -c -nr
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.