Qt 6.2 + VS2019 环境编译,报错
"Qt requires a C++17 compiler, and a suitable value for __cplusplus. On MSVC, you must pass the /Zc:__cplusplus option to the compiler."解决
在工程 pro 文件中添加一下代码:
CONFIG += c++17
QMAKE_CXXFLAGS += -std:c++17 -Zc:__cplusplus
再次编译,问题解决。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)