【发布时间】:2011-12-16 18:05:13
【问题描述】:
我正在尝试使用 VS2010 编译 osgearth 库。该库使用 CMake,因此在设置所有依赖项后,它会生成一个 VS2010 解决方案文件。但是,在 VS 中运行构建时,我收到此链接器错误(以及 200 个类似错误)
错误 7 错误 LNK2019:无法解析的外部符号“__declspec(dllimport) public: void __thiscall std::basic_ofstream >::`vbase destructor'(void)” (_imp??_D?$ basic_ofstream@DU?$char_traits@D@std@@@std@@QAEXXZ) 在函数“public: virtual void __thiscall osgEarth::DiskCache::setImage(class osgEarth::TileKey const &,struct osgEarth::CacheSpec const & ,class osg::Image const *)" (?setImage@DiskCache@osgEarth@@UAEXABVTileKey@2@ABUCacheSpec@2@PBVImage@osg@@@Z) C:\swproj\osgearth-src\src\osgEarth\Caching。 obj osgEarth
我对 C++ 不是很熟悉,还有什么需要设置的吗?
【问题讨论】:
-
那是八年前的事了,抱歉:)