Windows Build & Setup Guide
This guide provides step-by-step instructions for configuring, compiling, and running Aegis on Windows using Visual Studio and CMake.
Prerequisites
To compile Aegis on Windows, ensure the following tools are installed:
- Visual Studio 2022:
- Install the Desktop development with C++ workload.
- Verify that the MSVC v143 compiler toolset and C++ CMake tools for Windows are checked.
- CMake (version 3.16 or higher):
- Usually bundled with Visual Studio, or can be installed standalone from cmake.org.
Configuring and Building
Aegis uses CMake to generate and manage cross-platform build configurations.
1. Configure the Build
Open a terminal (Developer PowerShell/Command Prompt for Visual Studio, or Git Bash) in the project root directory and run:
2. Compile the Targets
Compile the unit test executable (aegis_tests) and performance microbenchmark tool (aegis_benchmark):
The compiled binaries will be generated under build/Release/.
Running Verification Suites
1. Run Unit & Integration Tests
Verify that all core lock-free queues, memory pools, packet parsers, and connection trackers pass validation checks:
2. Run Performance Microbenchmarks
Evaluate component-level performance, measuring queue latency, memory pool acquire/release cycles, and parser throughput:
Troubleshooting
Compiler Warnings Treated as Errors
Aegis enables strict warning flags (/WX on MSVC) to enforce modern code quality standards. If compilation fails due to warnings on custom MSVC toolchain versions:
- Check that your Visual Studio 2022 toolset is up to date.
- Alternatively, you can disable treating warnings as errors by configuring CMake with: