Skip to content
On this page

Installation

Downloading the pre-compiled executable files

To download the pre-compiled executable files, you can visit release page.

Building From Source

  • Prerequisite

    • g++ for GNU/Linux and MacOS based operating systems and msvc for Windows.
    • openutils library, installation instructions are mentioned on library's repository.
    • git to clone the RUNCPP repository.
  • Compiling

    • Clone the repository first, using following command:
      • bash
        $ git clone https://github.com/Dark-CodeX/runcpp.git
        $ cd ./runcpp
    • Now, as you don't have RUNCPP already, you need to first compile it as a simple executable, and then generate an optimized executable.
      • GNU/Linux or MacOS:

        • bash
          $ mkdir -p ./bin
          $ g++ -std=c++20 ./runcpp/src/caller/caller.cc ./runcpp/src/command_line/command_line.cc ./runcpp/src/io/io.cc ./runcpp/src/os/os.cc ./runcpp/src/parser/*.cc ./runcpp/src/main/main.cc -o main
          $ ./main
        • After above commands are executed your optimized RUNCPP executable is ready-to-use, and is installed in /usr/bin/runcpp.
      • Windows:

        • Open Developer Powershell for VS 2022, and use cd command to navigate to repository's directory.
        • powershell
          mkdir ./obj
          mkdir ./bin
          cl.exe /std:c++latest /Fo./obj/ ./runcpp/src/main/main.cc ./runcpp/src/command_line/command_line.cc ./runcpp/src/caller/caller.cc ./runcpp/src/io/io.cc ./runcpp/src/os/os.cc ./runcpp/src/parser/*.cc
          ./main
        • Now, an optimized executable file is created with name of runcpp.exe in bin directory.