Skip to content

mikolasan/cpp-by-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

C++ by example

Static Badge Static Badge Static Badge

A collection of code snippets in C++ language

Optional dependencies

bgfx

Open MSVC terminal

cd graphics\bgfx ..\bx\tools\bin\windows\genie --with-shared-lib --with-tools --with-sdl vs2022 start .build/projects/vs2022/bgfx.sln 

LLVM

git submodule add https://github.com/llvm/llvm-project.git thirdparty/llvm git checkout llvmorg-16.0.0 cd thirdparty cmake -S llvm\llvm -B llvm-build --install-prefix="C:\Users\neupo\develop\cpp-skill\thirdparty\windows\LLVM" -DLLVM_ENABLE_PROJECTS=clang -DLLVM_TARGETS_TO_BUILD=X86 -Thost=x64 cmake --build llvm-build --config Release cmake --install llvm-build 

Lua

Add to user environment variables

Lua51_ROOT = "C:\<path_to_cpp-skill>\windows\lua" 

Build

cmake -DCMAKE_BUILD_TYPE=Release -S . -B build cmake --build build --target all 

The book

Run locally:

mdbook serve 

About

Small C++ snippets playing with core language functionality

Topics

Resources

License

Stars

Watchers

Forks