cplusplus

(โ˜… 158)

A compiler front end for the C++ language

  • .clang-format
  • .dockerignore
  • .gitignore
  • CHANGELOG.md
  • clangd.in
  • clangd_emscripten.in
  • CMakeLists.txt
  • CMakePresets.json
  • Config.cmake.in
  • Dockerfile.emsdk
  • Dockerfile.wasi
  • LICENSE
  • package-lock.json
  • package.json
  • pyproject.toml
  • README.md
  • uv.lock

# Installation Guide

1. Get the code
git clone https://github.com/robertoraggi/cplusplus

Downloads the entire project code from GitHub to your computer.

cd cplusplus

Moves into the project folder you just downloaded.

2. Docker

Easy Recommended
Prerequisites
  • Git Needed to download the project code from GitHub.
  • Docker Desktop Needed to build and run containers. Install it and keep it running in the background.
docker build -f Dockerfile.emsdk -t cplusplus .

Builds a runnable image based on the Dockerfile.

docker run -p 8080:80 cplusplus

Runs the built image as an actual container.

โœ… Run docker compose ps to check the containers are Up. If the README mentions a port, open http://localhost:PORT in your browser.

3. CMake

Medium
Prerequisites
  • Git Needed to download the project code from GitHub.
  • CMake The tool used to generate build configuration.
  • C/C++ ์ปดํŒŒ์ผ๋Ÿฌ Windows needs Visual Studio (Community edition, free), macOS needs Xcode Command Line Tools, Linux needs the gcc/g++ package.
cmake --preset default-mlir

Type this command into your terminal and run it.

cmake --build build

Type this command into your terminal and run it.

โœ… Check that an executable was created inside the build folder, then run it directly (e.g. ./build/app_name).

Pulled directly from this repo's README.

4. Node.js

Easy
Prerequisites
  • Git Needed to download the project code from GitHub.
  • Node.js Node.js must be installed to use npm. The LTS version is recommended.
npm ci

Type this command into your terminal and run it.

npm run build:cxx-frontend

Builds optimized production files.

npm run build:wasi

Builds optimized production files.

npm install cxx-frontend

Downloads and installs the libraries listed in package.json.

โœ… After running the command, open the address shown in the terminal (usually something like http://localhost:3000) in your browser.

Pulled directly from this repo's README.

5. Python

Easy
Prerequisites
  • Git Needed to download the project code from GitHub.
  • Python 3 On Windows, be sure to check 'Add Python to PATH' during installation.
pip install .

Installs the package published on PyPI directly โ€” no need to clone the source.

python <์‹คํ–‰ํ•  ํŒŒ์ผ๋ช…>.py # README์—์„œ ์ •ํ™•ํ•œ ์‹คํ–‰ ํŒŒ์ผ๋ช…์„ ํ™•์ธํ•˜์„ธ์š”

Runs the Python script (or module).

โœ… If it runs without errors and prints output in the terminal, it worked.
// repository documentation