精通
英语
和
开源
,
擅长
开发
与
培训
,
胸怀四海
第一信赖
服务方向
联系方式
锐英源精品原创,禁止转载和任何形式的非法内容使用,违者必究
编译rime依赖的yaml-cpp时出如下错误:
D:\librime-master\thirdparty\src\yaml-cpp\include\yaml-cpp/exceptions.h(123,24): error C3646: “_NOEXCEPT”: 未知重写说明符 [D:\librime-master\thirdparty\src\yaml-cpp\build\yaml-cpp.vcxproj] D:\librime-master\thirdparty\src\yaml-cpp\include\yaml-cpp/exceptions.h(149,30): error C3646: “_NOEXCEPT”: 未知重写说明符 [D:\librime-master\thirdparty\src\yaml-cpp\build\yaml-cpp.vcxproj] D:\librime-master\thirdparty\src\yaml-cpp\include\yaml-cpp/exceptions.h(157,38): error C3646: “_NOEXCEPT”: 未知重写说明符 [D:\librime-master\thirdparty\src\yaml-cpp\build\yaml-cpp.vcxproj] D:\librime-master\thirdparty\src\yaml-cpp\include\yaml-cpp/exceptions.h(166,28): error C3646: “_NOEXCEPT”: 未知重写说明符 [D:\librime-master\thirdparty\src\yaml-cpp\build\yaml-cpp.vcxproj] D:\librime-master\thirdparty\src\yaml-cpp\include\yaml-cpp/exceptions.h(176,26): error C3646: “_NOEXCEPT”: 未知重写说明符 [D:\librime-master\thirdparty\src\yaml-cpp\build\yaml-cpp.vcxproj] D:\librime-master\thirdparty\src\yaml-cpp\include\yaml-cpp/exceptions.h(184,31): error C3646: “_NOEXCEPT”: 未知重写说明符 [D:\librime-master\thirdparty\src\yaml-cpp\build\yaml-cpp.vcxproj] D:\librime-master\thirdparty\src\yaml-cpp\include\yaml-cpp/exceptions.h(187): message : 查看对正在编译的 类 模板 实例化“YAML::TypedKeyNotFound”的引用 [D:\librime-master\thirdparty\src\yaml-cpp\build\yaml-cpp.vcxproj] D:\librime-master\thirdparty\src\yaml-cpp\include\yaml-cpp/exceptions.h(200,26): error C3646: “_NOEXCEPT”: 未知重写说明符 [D:\librime-master\thirdparty\src\yaml-cpp\build\yaml-cpp.vcxproj] D:\librime-master\thirdparty\src\yaml-cpp\include\yaml-cpp/exceptions.h(208,28): error C3646: “_NOEXCEPT”: 未知重写说明符 [D:\librime-master\thirdparty\src\yaml-cpp\build\yaml-cpp.vcxproj] D:\librime-master\thirdparty\src\yaml-cpp\include\yaml-cpp/exceptions.h(222,29): error C3646: “_NOEXCEPT”: 未知重写说明符 [D:\librime-master\thirdparty\src\yaml-cpp\build\yaml-cpp.vcxproj] D:\librime-master\thirdparty\src\yaml-cpp\include\yaml-cpp/exceptions.h(230,27): error C3646: “_NOEXCEPT”: 未知重写说明符 [D:\librime-master\thirdparty\src\yaml-cpp\build\yaml-cpp.vcxproj] D:\librime-master\thirdparty\src\yaml-cpp\include\yaml-cpp/exceptions.h(238,26): error C3646: “_NOEXCEPT”: 未知重写说明符 [D:\librime-master\thirdparty\src\yaml-cpp\build\yaml-cpp.vcxproj] D:\librime-master\thirdparty\src\yaml-cpp\include\yaml-cpp/exceptions.h(246,24): error C3646: “_NOEXCEPT”: 未知重写说明符 [D:\librime-master\thirdparty\src\yaml-cpp\build\yaml-cpp.vcxproj] D:\librime-master\thirdparty\src\yaml-cpp\include\yaml-cpp/exceptions.h(254,31): error C3646: “_NOEXCEPT”: 未知重写说明符 [D:\librime-master\thirdparty\src\yaml-cpp\build\yaml-cpp.vcxproj] D:\librime-master\thirdparty\src\yaml-cpp\include\yaml-cpp/exceptions.h(261,22): error C3646: “_NOEXCEPT”: 未知重写说明符 [D:\librime-master\thirdparty\src\yaml-cpp\build\yaml-cpp.vcxproj] directives.cpp emit.cpp emitfromevents.cpp emitter.cpp D:\librime-master\thirdparty\src\yaml-cpp\include\yaml-cpp/exceptions.h(123,24): error C3646: “_NOEXCEPT”: 未知重写说明符 [D:\librime-master\thirdparty\src\yaml-cpp\build\yaml-cpp.vcxproj] D:\librime-master\thirdparty\src\yaml-cpp\include\yaml-cpp/exceptions.h(149,30): error C3646: “_NOEXCEPT”: 未知重写说明符 [D:\librime-master\thirdparty\src\yaml-cpp\build\yaml-cpp.vcxproj] D:\librime-master\thirdparty\src\yaml-cpp\include\yaml-cpp/exceptions.h(157,38): error C3646: “_NOEXCEPT”: 未知重写说明符 [D:\librime-master\thirdparty\src\yaml-cpp\build\yaml-cpp.vcxproj] D:\librime-master\thirdparty\src\yaml-cpp\include\yaml-cpp/exceptions.h(166,28): error C3646: “_NOEXCEPT”: 未知重写说明符 [D:\librime-master\thirdparty\src\yaml-cpp\build\yaml-cpp.vcxproj] D:\librime-master\thirdparty\src\yaml-cpp\include\yaml-cpp/exceptions.h(176,26): error C3646: “_NOEXCEPT”: 未知重写说明符 [D:\librime-master\thirdparty\src\yaml-cpp\build\yaml-cpp.vcxproj] D:\librime-master\thirdparty\src\yaml-cpp\include\yaml-cpp/exceptions.h(184,31): error C3646: “_NOEXCEPT”: 未知重写说明符 [D:\librime-master\thirdparty\src\yaml-cpp\build\yaml-cpp.vcxproj] D:\librime-master\thirdparty\src\yaml-cpp\include\yaml-cpp/exceptions.h(187): message : 查看对正在编译的 类 模板 实例化“YAML::TypedKeyNotFound ”的引用 [D:\librime-master\thirdparty\src\yaml-cpp\build\yaml-cpp.vcxproj] D:\librime-master\thirdparty\src\yaml-cpp\include\yaml-cpp/exceptions.h(200,26): error C3646: “_NOEXCEPT”: 未知重写说明符 [D:\librime-master\thirdparty\src\yaml-cpp\build\yaml-cpp.vcxproj] D:\librime-master\thirdparty\src\yaml-cpp\include\yaml-cpp/exceptions.h(208,28): error C3646: “_NOEXCEPT”: 未知重写说明符 [D:\librime-master\thirdparty\src\yaml-cpp\build\yaml-cpp.vcxproj] D:\librime-master\thirdparty\src\yaml-cpp\include\yaml-cpp/exceptions.h(222,29): error C3646: “_NOEXCEPT”: 未知重写说明符 [D:\librime-master\thirdparty\src\yaml-cpp\build\yaml-cpp.vcxproj] D:\librime-master\thirdparty\src\yaml-cpp\include\yaml-cpp/exceptions.h(230,27): error C3646: “_NOEXCEPT”: 未知重写说明符 [D:\librime-master\thirdparty\src\yaml-cpp\build\yaml-cpp.vcxproj] D:\librime-master\thirdparty\src\yaml-cpp\include\yaml-cpp/exceptions.h(238,26): error C3646: “_NOEXCEPT”: 未知重写说明符 [D:\librime-master\thirdparty\src\yaml-cpp\build\yaml-cpp.vcxproj] D:\librime-master\thirdparty\src\yaml-cpp\include\yaml-cpp/exceptions.h(246,24): error C3646: “_NOEXCEPT”: 未知重写说明符 [D:\librime-master\thirdparty\src\yaml-cpp\build\yaml-cpp.vcxproj] D:\librime-master\thirdparty\src\yaml-cpp\include\yaml-cpp/exceptions.h(254,31): error C3646: “_NOEXCEPT”: 未知重写说明符 [D:\librime-master\thirdparty\src\yaml-cpp\build\yaml-cpp.vcxproj] D:\librime-master\thirdparty\src\yaml-cpp\include\yaml-cpp/exceptions.h(261,22): error C3646: “_NOEXCEPT”: 未知重写说明符 [D:\librime-master\thirdparty\src\yaml-cpp\build\yaml-cpp.vcxproj]
这问题肯定是普通程序员很难遇到,遇到了也很难解决,我也是搜索不到信息,干瞪眼。
编译yaml-cpp,用控制台不行,用VS也不行,但没有yaml-cpp的库,主项目exe肯定生成不了,项目结不了,还是要想办法。
后来仔细看开源作者的windows下编译说明,用git统一下载了主exe和依赖库,再用build.bat编译就不出错了。
环境问题,要追查环境,不要乱想思路,思路很难想,也很浪费时间。