Giter Site home page Giter Site logo

runcpp's Introduction

runCpp

version Lines of Code HitCount issues stars

What is RunCpp?

RunCpp is an easy tool to compile and run C++ programs

Features

  • Arguments --version and --help
  • Check and install dependencies
  • Turns on helpful warning messages with -Wall
  • Omits all symbol information from the executable file thus making it as small as possible with -s
  • Turns off a couple non-standard g++ additions with -pedantic-errors
  • Using the most recent revision of the ISO/IEC 14882 standard for the C++ compiler (C++17)
  • Argument -o to custom output filename

Installation

You need to follow these steps to run it.

$ git clone https://github.com/mateus4k/runcpp.git
$ cd runcpp/
$ sudo chmod u+x runcpp.sh
$ sudo cp runcpp.sh runcpp; sudo mv runcpp /usr/local/bin

Dependencies

This tool need a C/C++ compiler. Run which gcc g++ or command -v gcc g++ to see if you have it installed on your PC. If that command doesn't output the code below you will need to install it.

/usr/bin/gcc
/usr/bin/g++
  • For Debian-based distros, run sudo apt install gcc g++.
  • For Arch-based distros, run sudo pacman -S gcc g++.
  • For RedHat-based distros, run sudo dnf install gcc gcc-c++.
  • For OpenSuse-based distros, run sudo zypper install gcc g++

Usage

To compile any .cpp source code run:

$ runcpp [arguments] <file>

Development

Want to contribute? Great! Please follow the "fork-and-pull" git workflow.

  1. Fork the repo on GitHub
  2. Clone the project to your own machine
  3. Commit changes to your own branch
  4. Push your work back up to your fork
  5. Submit a Pull request so that I can review your changes

runcpp's People

Contributors

mateus4k avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.