1. error MSB4044: 未给任务“CppClean”的必需参数“FoldersToClean”赋值
The "CppClean" task was not given a value for the required parameter "FoldersToClean"
解决办法:工程 - 属性 - 配置属性 - 常规 - 中间目录,为空导致这个错误。写入$(Configuration)即可。
2.error D8016: '/ZI' and '/GL' command-line options are incompatible
解决办法:把Debug调试项改为/ZI /Od ; Project Settings 项->C/C++ -> General
3.fatal error C1189: #error : This file requires _WIN32_WINNT to be #defined at least to 0x0403. Value 0x0501 or higher is recommended.
解决办法:C/C++->Preprocessor->Preprocessor Definitions中的_WIN32_WINNT=0x0501改掉就可以了
4.error C2059: syntax error : 'catch'
解决办法:properties->Configuration Properties->C/C++->PreProcessor->Preprocessor Definitions中将try=
vs调试常见报错总结
最新推荐文章于 2025-06-28 21:21:47 发布