docs

C++

C++ is used for low-level programming as an alternative to Rust.

Installation

Install mingw (or Build Tools for Visual Studio) and Conan. Python is needed to install Conan.

uv tool install conan
conan profile detect

profiles/default


Usage

Initialization

mkdir <name>
cd <name>
conan new cmake_lib -d name=<name> # or
conan new cmake_exe -d name=<name>

Dependencies

During project initialization, add:

conan new cmake_lib -d name=<name> -d requires=<dep1>/<version> -d requires=<dep2>/<version> -d tool_requires=<dep3>/<version> -d tool_requires=<dep4>/<version>

tool_requires is dev dependences.

Dependencies

Doxygen has a broken build, so use global install instead.

continued

conan install . --build=missing
conan install . -s build_type=Debug --build=missing
doxygen -g

Create

Edit

Run

VS Code Debugger

Build

VS Code CMake Build

Docs

doxygen

Directory

lib

exe

Overall

Upgrading

After upgrading, run:

conan cache clean