setting up cpp development on windows

Here's how I setup cpp for development on windows

Compiler

For compatilbility reasons I usually recommend using msvc which you can get by downloading microsoft visual studio this also comes with the benefit of conan having many pre-built packages for msvc. Alternately you can use gcc, pacman -S mingw-w64-ucrt-x86_64-gcc

Building Setup

Others

Install an editor: pacman -S mingw-w64-ucrt-x86_64-neovim or something like Zed: https://zed.dev/docs/development/windows

Install python pacman -S mingw-w64-ucrt-x86_64-python-conan

If there are problems building

If cmake wants to use Mingw Makefiles then make sure you have make

        
            pacman -S mingw-w64-ucrt-x86_64-make
        
    

edit this page