Installation
Downloading the pre-compiled executable files
To download the pre-compiled executable files, you can visit release page.
Building From Source
Prerequisite
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 usecd
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
inbin
directory.
- Open
- Clone the repository first, using following command: