出现 Exception: Unable to find a suitable CC compiler
的解决方法:
使用 x86 Native Tools Command Prompt
打开要编译的文件夹,然后正常编译流程即可。
正常编译命令:
cd G:\#SourceMod\extsScripting\CXXIncludes\KoNLiG-Collisionhook
mkdir build
cd build
python ../configure.py --sdks csgo --hl2sdk-root G:\#SourceMod\extsScripting\CXXIncludes
ambuild
hl2sdk克隆命令:
git clone --branch csgo --recurse-submodules https://github.com/alliedmodders/hl2sdk.git