搭建VS+MongoDB+Qt(64位)环境: error C2953 :类模板已经定义
参考:https://blog.csdn.net/qq_42588070/article/details/102012405
参考:https://xiaoneng.blog.csdn.net/article/details/103205882
参考: https://blog.csdn.net/weixin_43886592/article/details/102653762
参考: https://blog.csdn.net/u012727080/article/details/52484553
问题:
F:\Qt5.14.2\5.14.2\ msvc2017_64\include\QtCore\type_traits(89,3): error C2953: “std::_Disjunction”: 类模板已经定义 (编译源文件 main.cpp)
我的解决方法:
找到 type_traits文件,修改文件扩展名位.h头文件格式, 及修改为type_traits.h
之后又出现的问题:
F:\Qt5.14.2\5.14.2\ msvc2017_64\include\QtCore\memory(23,1): error C2061: 语法错误: 标识符“_General_ptr_iterator_tag”
同样的方法, 找到 memory文件,修改文件扩展名位.h头文件格式, 及修改为memory.h

浙公网安备 33010602011771号