WCC is a portable, containerized C++ build environment. It allows you to compile Windows executables (.exe) from any directory on your machine without ever installing a compiler, CMake, or MinGW on your actual Windows host.
- Zero Host Pollution: Keep your Windows install clean. All build tools stay inside Docker.
- Global Command: Run
wccfrom any project folder to trigger a build. - Static Linking: Produces standalone
.exefiles that don't require extra DLLs. - Cross-Platform Engine: Uses Linux-based high-performance tools to target Windows.
-
Requirement: Ensure Docker Desktop is installed and running.
-
Download: Place the
windows-compilerfolder anywhere on your PC. -
Setup:
-
Open Command Prompt (CMD) as Administrator.
-
Navigate to the folder and run:
setup.bat
-
-
Restart: Close and reopen your terminal to refresh the
PATHvariable.
To compile any C++ project, navigate to your project folder (which must contain a CMakeLists.txt) and run:
wcc- Docker mounts your current directory to
/srcinside the container. - CMake configures the project using a hidden Windows toolchain.
- Make compiles your source code.
- A
build/folder is created in your project directory containing the compiled.exe.
To work with wcc, your project should look like this:
my-project/
├── CMakeLists.txt
├── src/
│ └── main.cpp
└── include/
└── my_header.h
Note: Your CMakeLists.txt should be standard. wcc handles the cross-compilation flags for you automatically.
To remove the global command, the Docker image, and clean your System PATH:
-
Open Command Prompt (CMD) as Administrator.
-
Navigate to the
windows-compilerfolder and run:uninstall.bat
MIT — Feel free to use and modify!