Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ggpp-1.1.2.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

ggpp-1.1.2-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

Details for the file ggpp-1.1.2.tar.gz.

File metadata

  • Download URL: ggpp-1.1.2.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3

File hashes

Hashes for ggpp-1.1.2.tar.gz
Algorithm Hash digest
SHA256 aaffbd01fbe09e422f612f8255efdd0bbe2c06d88d71e21e9cd05417c236c232
MD5 d7873b6332519ae2410e6f679d7b9ea1
BLAKE2b-256 664c403b1187e61bd56fbad248b2d6f2de034472c5232bbc4399e904f9b43b4b

See more details on using hashes here.

File details

Details for the file ggpp-1.1.2-py3-none-any.whl.

File metadata

  • Download URL: ggpp-1.1.2-py3-none-any.whl
  • Upload date:
  • Size: 6.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3

File hashes

Hashes for ggpp-1.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 05ef38c38ed54754d6eac9ce886d73e2a0f08139e43f7b548fd1e6584ec3c9f6
MD5 f111d49d0be4f621a86ba297a4c211f8
BLAKE2b-256 4513b4092956ff6be356f50f93e8f79b41799e808e0473e982e1d709d82bb7a5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page