|
VC2010下编译osgEarth 2.1的静态库没有报错,但是在编译osgEarth的sample时都出现链接错误如下:
- 2>osgearth_annotation.obj : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: void __thiscall osgEarth::Symbology::Style::addSymbol(class osgEarth::Symbology::Symbol *)" (__imp_?addSymbol@Style@Symbology@osgEarth@@QAEXPAVSymbol@23@@Z)
- 2>osgEarthUtil.lib(Controls.obj) : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: void __thiscall osgEarth::Symbology::Style::addSymbol(class osgEarth::Symbology::Symbol *)" (__imp_?addSymbol@Style@Symbology@osgEarth@@QAEXPAVSymbol@23@@Z)
- 2>osgearth_annotation.obj : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: static struct osgEarth::Symbology::Color osgEarth::Symbology::Color::Black" (__imp_?Black@Color@Symbology@osgEarth@@2U123@A)
- 2>osgearth_annotation.obj : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: __thiscall osgEarth::Util::EarthManipulator::EarthManipulator(void)" (__imp_??0EarthManipulator@Util@osgEarth@@QAE@XZ)
- 2>osgearth_annotation.obj : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: static struct osgEarth::Symbology::Color osgEarth::Symbology::Color::White" (__imp_?White@Color@Symbology@osgEarth@@2U123@A)
- 2>osgEarthUtil.lib(Controls.obj) : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: static struct osgEarth::Symbology::Color osgEarth::Symbology::Color::White" (__imp_?White@Color@Symbology@osgEarth@@2U123@A)
- 2>osgearth_annotation.obj : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: __thiscall osgEarth::Util::Annotation::EllipseNode::EllipseNode(class osgEarth::MapNode *,class osg::Vec3d const &,struct osgEarth::Linear const &,struct osgEarth::Linear const &,struct osgEarth::Angular const &,class osgEarth::Symbology::Style const &,bool,unsigned int)" (__imp_??0EllipseNode@Annotation@Util@osgEarth@@QAE@PAVMapNode@3@ABVVec3d@osg@@ABULinear@3@2ABUAngular@3@ABVStyle@Symbology@3@_NI@Z)
- 2>osgearth_annotation.obj : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: static struct osgEarth::Symbology::Color osgEarth::Symbology::Color::Orange" (__imp_?Orange@Color@Symbology@osgEarth@@2U123@A)
- ………………………………
复制代码
已在预处理器定义中添加了OSG_LIBRARY_STATIC、OT_LIBRARY_STATIC,/MT和/MD都这样,如何解决啊? |
|