OSGEphemeris中的构建错误
Building Error in OSGEphemeris
我正在尝试构建OSGEphemeris。我从中签出了源代码https://code.google.com/p/osgephemeris/source/checkout并将其与OSG 3.2.0链接。但它给出了类似-的编译错误
错误C2784:'bool std::operator<(const std::list<_Ty,_Ax>&,const std::list&llt;_Ty;_Ax>&)':无法推导"const std:list&lgt;"的模板参数_Ty,_Ax>&'来自"const std::string">
错误C2784:'bool std::operator<(const std::list<_Ty,_Ax>&,const std::list&llt;_Ty;_Ax>&)':无法推导"const std:list&lgt;"的模板参数_Ty,_Ax>&'来自"const std::string">
错误C2784:'bool std::operator<(const std::_Tree<_Traits>&,const std::_Tree<_Traits>&)":无法推导"const std::_Tree<_特征>&'来自"const std::string">
错误C2664:"osgEphemeris::StarField::_parseStream":无法将参数1从"int"转换为"std::istream&">
等等。我没有更改源代码中的任何内容。我怎样才能让它工作??提前感谢
我已经解决了这个问题。问题是osgDB有自己的基于std::String的String类,而osgText有自己的fstream类。两者都定义在与标准库标头同名的标头中。因此,通过从visualstudio的附加include目录中删除这些头文件,问题得到了解决。如果有人面临同样的问题,也许这会有所帮助。
- libssh 的函数在构建 libssh 时无法在 Qt 和 cmake 错误中找到
- VSCode-有一个红色下划线,但程序构建和运行正确,并且出现配音错误
- Clion显示错误,但可以使用Cmake成功构建代码
- Agora.io 虚幻引擎插件构建错误
- VS 2015 链接错误 无法构建依赖于 libcurl 的项目
- 如何构建 SOCI 库而没有错误?
- 尝试将 boost::stacktrace 添加到 CMake 项目时出现构建错误
- Arch Linux.AUR 包 mysql 不能用 makepkg 构建.错误:构建 () 中出现故障
- GCC:随机构建导致执行期间分段错误
- 组件上的虚幻引擎可蓝图UFUNCTION会导致构建错误
- 构建失败错误:无法使用 qibuild 构建C++ SDK Helloworld
- 调试模板时出现问题.专门针对 Linux GCC 7、GCC 6、GCC 5、GCC 4.9 错误构建失败:模板参数 1
- MINGW的错误构建提升
- 从Canfestival错误构建CanOpen的示例
- 链接器错误构建GDAL VS2017
- Netbeans 7.4 C++简单的 hello world 错误构建失败尝试了 Google 搜索结果前 2 页上的
- 链接器错误构建 fibonnacci 示例与 boost::coroutine2 与 Boost 1.60 使用动态链接
- 使用CMake错误构建Thor SFML扩展
- 链接器错误构建GDAL
- 错误构建简单的MongoDB c++客户端示例