|
运行一个简单的例子 编译时出现错误,不知道如何解决,请各位不吝赐教。
OSG2.4 VS2005的环境:
1>cow.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: __thiscall osgViewer::Viewer::Viewer(void)" (__imp_??0Viewer@osgViewer@@QAE@XZ),该符号在函数 _wmain 中被引用
1>cow.obj : error LNK2001: 无法解析的外部符号 "public: virtual class osg::View * __thiscall osgViewer::View::asView(void)" (?asView@View@osgViewer@@UAEPAV1osg@@XZ)
1>cow.obj : error LNK2001: 无法解析的外部符号 "public: virtual void __thiscall osgViewer::View::requestRedraw(void)" (?requestRedraw@View@osgViewer@@UAEXXZ)
1>cow.obj : error LNK2001: 无法解析的外部符号 "public: virtual void __thiscall osgViewer::View::requestContinuousUpdate(bool)" (?requestContinuousUpdate@View@osgViewer@@UAEX_N@Z)
1>cow.obj : error LNK2001: 无法解析的外部符号 "public: virtual void __thiscall osgViewer::View::requestWarpPointer(float,float)" (?requestWarpPointer@View@osgViewer@@UAEXMM@Z)
1>cow.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: virtual char const * __thiscall osgViewer::Viewer::libraryName(void)const " (__imp_?libraryName@Viewer@osgViewer@@UBEPBDXZ),该符号在函数 "[thunk]:public: virtual char const * __thiscall osgViewer::Viewer::libraryName`vtordisp{4294967292,0}' (void)const " (?libraryName@Viewer@osgViewer@@$4PPPPPPPM@A@BEPBDXZ) 中被引用
1>cow.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: void __thiscall osgViewer::Viewer::`vbase destructor'(void)" (__imp_??_DViewer@osgViewer@@QAEXXZ),该符号在函数 "public: virtual void * __thiscall osgViewer::Viewer::`scalar deleting destructor'(unsigned int)" (??_GViewer@osgViewer@@UAEPAXI@Z) 中被引用
1>cow.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: virtual class osg::Object * __thiscall osgViewer::Viewer::cloneType(void)const " (__imp_?cloneType@Viewer@osgViewer@@UBEPAVObject@osg@@XZ),该符号在函数 "[thunk]:public: virtual class osg::Object * __thiscall osgViewer::Viewer::cloneType`vtordisp{4294967292,0}' (void)const " (?cloneType@Viewer@osgViewer@@$4PPPPPPPM@A@BEPAVObject@osg@@XZ) 中被引用
1>cow.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: virtual class osg::Object * __thiscall osgViewer::Viewer::clone(class osg::CopyOp const &)const " (__imp_?clone@Viewer@osgViewer@@UBEPAVObject@osg@@ABVCopyOp@4@@Z),该符号在函数 "[thunk]:public: virtual class osg::Object * __thiscall osgViewer::Viewer::clone`vtordisp{4294967292,0}' (class osg::CopyOp const &)const " (?clone@Viewer@osgViewer@@$4PPPPPPPM@A@BEPAVObject@osg@@ABVCopyOp@4@@Z) 中被引用
1>cow.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: virtual bool __thiscall osgViewer::Viewer::isSameKindAs(class osg::Object const *)const " (__imp_?isSameKindAs@Viewer@osgViewer@@UBE_NPBVObject@osg@@@Z),该符号在函数 "[thunk]:public: virtual bool __thiscall osgViewer::Viewer::isSameKindAs`vtordisp{4294967292,0}' (class osg::Object const *)const " (?isSameKindAs@Viewer@osgViewer@@$4PPPPPPPM@A@BE_NPBVObject@osg@@@Z) 中被引用
1>cow.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: virtual char const * __thiscall osgViewer::Viewer::className(void)const " (__imp_?className@Viewer@osgViewer@@UBEPBDXZ),该符号在函数 "[thunk]:public: virtual char const * __thiscall osgViewer::Viewer::className`vtordisp{4294967292,0}' (void)const " (?className@Viewer@osgViewer@@$4PPPPPPPM@A@BEPBDXZ) 中被引用
1>C:\Documents and Settings\Administrator.672257A1A372408\My Documents\Visual Studio 2005\Projects\cow\Debug\cow.exe : fatal error LNK1120: 11 个无法解析的外部命令
1>生成日志保存在“file://c:\Documents and Settings\Administrator.672257A1A372408\My Documents\Visual Studio 2005\Projects\cow\cow\Debug\BuildLog.htm”
1>cow - 12 个错误,0 个警告
========== 生成: 0 已成功, 1 已失败, 0 最新, 0 已跳过 ========== |
|