Skip to content

Latest commit

 

History

History
19 lines (17 loc) · 565 Bytes

2023-2-26.md

File metadata and controls

19 lines (17 loc) · 565 Bytes

Build an extension

出现 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