What problem does it solve?
This Skill removes the friction of configuring and diagnosing Windows C/C++ builds by translating GCC/Clang flags to MSVC equivalents, advising runtime library choices, guiding PDB generation, and helping resolve common MSVC linker errors.
Core Features & Use Cases
- Flag translation: Maps common GCC/Clang options to cl.exe/clang-cl equivalents and explains linker- vs compiler-stage flags.
- Runtime library guidance: Explains /MD vs /MT choices, the cause of runtime mismatches, and how to unify CRT linkage to avoid LNK2038 and related issues.
- clang-cl and toolchain integration: Shows how to use clang-cl with MSBuild and CMake, compatibility considerations for STL and Clang versions, and LTO/LTCG usage.
- Debugging and PDBs: Advises on /Zi, /Z7, /Fd, linker /DEBUG options, and symbol placement for VS and WinDbg scenarios.
- Use case: When a Windows build produces unresolved externals or defaultlib conflicts, use this Skill to find mismatched runtimes, missing libraries, and the correct MSVC flags to fix the build.
Quick Start
Ask the msvc-cl skill to translate a list of GCC/Clang flags to MSVC equivalents and diagnose any linker errors for a Visual Studio or CMake Windows project.