|
楼主 |
发表于 2012-9-11 12:08:28
|
显示全部楼层
问题在标题里没说清楚,不好意思啊。
问题是这样的,编译后出现无法解析的问题,应该不会是动态链接的问题osgmanipulator的文件我找到了,
main.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: __thiscall osgManipulator::TranslateAxisDragger::TranslateAxisDragger(void)" (__imp_??0TranslateAxisDragger@osgManipulator@@QAE@XZ),该符号在函数 _main 中被引用
1>main.obj : error LNK2001: 无法解析的外部符号 "public: virtual class osg::Object * __thiscall osgManipulator::TranslateAxisDragger::cloneType(void)const " (?cloneType@TranslateAxisDragger@osgManipulator@@UBEPAVObject@osg@@XZ)
1>main.obj : error LNK2001: 无法解析的外部符号 "public: virtual class osg::Object * __thiscall osgManipulator::CompositeDragger::clone(class osg::CopyOp const &)const " (?clone@CompositeDragger@osgManipulator@@UBEPAVObject@osg@@ABVCopyOp@4@@Z)
1>main.obj : error LNK2001: 无法解析的外部符号 "public: virtual bool __thiscall osgManipulator::TranslateAxisDragger::isSameKindAs(class osg::Object const *)const " (?isSameKindAs@TranslateAxisDragger@osgManipulator@@UBE_NPBVObject@osg@@@Z)
1>main.obj : error LNK2001: 无法解析的外部符号 "public: virtual char const * __thiscall osgManipulator::TranslateAxisDragger::libraryName(void)const " (?libraryName@TranslateAxisDragger@osgManipulator@@UBEPBDXZ)
1>main.obj : error LNK2001: 无法解析的外部符号 "public: virtual char const * __thiscall osgManipulator::TranslateAxisDragger::className(void)const " (?className@TranslateAxisDragger@osgManipulator@@UBEPBDXZ)
1>main.obj : error LNK2001: 无法解析的外部符号 "public: virtual void __thiscall osgManipulator::CompositeDragger::accept(class osg::NodeVisitor &)" (?accept@CompositeDragger@osgManipulator@@UAEXAAVNodeVisitor@osg@@@Z)
1>main.obj : error LNK2001: 无法解析的外部符号 "public: virtual void __thiscall osgManipulator:ragger::traverse(class osg::NodeVisitor &)" (?traverse@Dragger@osgManipulator@@UAEXAAVNodeVisitor@osg@@@Z)
1>main.obj : error LNK2001: 无法解析的外部符号 "public: virtual void __thiscall osgManipulator::CompositeDragger::setParentDragger(class osgManipulator::Dragger *)" (?setParentDragger@CompositeDragger@osgManipulator@@UAEXPAVDragger@2@@Z)
1>main.obj : error LNK2001: 无法解析的外部符号 "public: virtual class osgManipulator::CompositeDragger * __thiscall osgManipulator::CompositeDragger::getComposite(void)" (?getComposite@CompositeDragger@osgManipulator@@UAEPAV12@XZ)
1>main.obj : error LNK2001: 无法解析的外部符号 "public: virtual class osgManipulator::CompositeDragger const * __thiscall osgManipulator::CompositeDragger::getComposite(void)const " (?getComposite@CompositeDragger@osgManipulator@@UBEPBV12@XZ)
1>main.obj : error LNK2001: 无法解析的外部符号 "public: virtual bool __thiscall osgManipulator::CompositeDragger::handle(class osgManipulator:ointerInfo const &,class osgGA::GUIEventAdapter const &,class osgGA::GUIActionAdapter &)" (?handle@CompositeDragger@osgManipulator@@UAE_NABVPointerInfo@2@ABVGUIEventAdapter@osgGA@@AAVGUIActionAdapter@5@@Z)
1>main.obj : error LNK2001: 无法解析的外部符号 "public: virtual bool __thiscall osgManipulator::Dragger::handle(class osgGA::GUIEventAdapter const &,class osgGA::GUIActionAdapter &)" (?handle@Dragger@osgManipulator@@UAE_NABVGUIEventAdapter@osgGA@@AAVGUIActionAdapter@4@@Z)
1>main.obj : error LNK2001: 无法解析的外部符号 "public: virtual void __thiscall osgManipulator::TranslateAxisDragger::setupDefaultGeometry(void)" (?setupDefaultGeometry@TranslateAxisDragger@osgManipulator@@UAEXXZ)
1>main.obj : error LNK2001: 无法解析的外部符号 "public: virtual bool __thiscall osgManipulator::Dragger::receive(class osgManipulator::MotionCommand const &)" (?receive@Dragger@osgManipulator@@UAE_NABVMotionCommand@2@@Z)
1>main.obj : error LNK2001: 无法解析的外部符号 "public: virtual bool __thiscall osgManipulator::CompositeDragger::addDragger(class osgManipulator::Dragger *)" (?addDragger@CompositeDragger@osgManipulator@@UAE_NPAVDragger@2@@Z)
1>main.obj : error LNK2001: 无法解析的外部符号 "public: virtual bool __thiscall osgManipulator::CompositeDragger::removeDragger(class osgManipulator::Dragger *)" (?removeDragger@CompositeDragger@osgManipulator@@UAE_NPAVDragger@2@@Z)
1>main.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: void __thiscall osgManipulator::Dragger::addTransformUpdating(class osg::MatrixTransform *)" (__imp_?addTransformUpdating@Dragger@osgManipulator@@QAEXPAVMatrixTransform@osg@@@Z),该符号在函数 "public: bool __thiscall osgManipulator::CommandManager::connect(class osgManipulator::Dragger &,class osg::MatrixTransform &)" (?connect@CommandManager@osgManipulator@@QAE_NAAVDragger@2@AAVMatrixTransform@osg@@@Z) 中被引用
1>main.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) protected: virtual __thiscall osgManipulator::TranslateAxisDragger::~TranslateAxisDragger(void)" (__imp_??1TranslateAxisDragger@osgManipulator@@MAE@XZ),该符号在函数 "protected: virtual void * __thiscall osgManipulator::TranslateAxisDragger::`scalar deleting destructor'(unsigned int)" (??_GTranslateAxisDragger@osgManipulator@@MAEPAXI@Z) 中被引用
1>main.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: __thiscall osgManipulator::PointerInfo::PointerInfo(void)" (__imp_??0PointerInfo@osgManipulator@@QAE@XZ),该符号在函数 "public: __thiscall PickModelHandler::PickModelHandler(void)" (??0PickModelHandler@@QAE@XZ) 中被引用
1>main.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: void __thiscall osgManipulator::PointerInfo::addIntersection(class std::vector<class osg::Node *,class std::allocator<class osg::Node *> > const &,class osg::Vec3d const &)" (__imp_?addIntersection@PointerInfo@osgManipulator@@QAEXABV?$vector@PAVNode@osg@@V?$allocator@PAVNode@osg@@@std@@@std@@ABVVec3d@osg@@@Z),该符号在函数 "public: virtual bool __thiscall PickModelHandler::handle(class osgGA::GUIEventAdapter const &,class osgGA::GUIActionAdapter &,class osg::Object *,class osg::NodeVisitor *)" (?handle@PickModelHandler@@UAE_NABVGUIEventAdapter@osgGA@@AAVGUIActionAdapter@3@PAVObject@osg@@PAVNodeVisitor@6@@Z) 中被引用
1>main.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: void __thiscall osgManipulator::PointerInfo::setMousePosition(float,float)" (__imp_?setMousePosition@PointerInfo@osgManipulator@@QAEXMM@Z),该符号在函数 "public: virtual bool __thiscall PickModelHandler::handle(class osgGA::GUIEventAdapter const &,class osgGA::GUIActionAdapter &,class osg::Object *,class osg::NodeVisitor *)" (?handle@PickModelHandler@@UAE_NABVGUIEventAdapter@osgGA@@AAVGUIActionAdapter@3@PAVObject@osg@@PAVNodeVisitor@6@@Z) 中被引用
1>main.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: void __thiscall osgManipulator::PointerInfo::setCamera(class osg::Camera *)" (__imp_?setCamera@PointerInfo@osgManipulator@@QAEXPAVCamera@osg@@@Z),该符号在函数 "public: virtual bool __thiscall PickModelHandler::handle(class osgGA::GUIEventAdapter const &,class osgGA::GUIActionAdapter &,class osg::Object *,class osg::NodeVisitor *)" (?handle@PickModelHandler@@UAE_NABVGUIEventAdapter@osgGA@@AAVGUIActionAdapter@3@PAVObject@osg@@PAVNodeVisitor@6@@Z) 中被引用
1>main.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: void __thiscall osgManipulator::PointerInfo::reset(void)" (__imp_?reset@PointerInfo@osgManipulator@@QAEXXZ),该符号在函数 "public: virtual bool __thiscall PickModelHandler::handle(class osgGA::GUIEventAdapter const &,class osgGA::GUIActionAdapter &,class osg::Object *,class osg::NodeVisitor *)" (?handle@PickModelHandler@@UAE_NABVGUIEventAdapter@osgGA@@AAVGUIActionAdapter@3@PAVObject@osg@@PAVNodeVisitor@6@@Z) 中被引用
1>main.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: __thiscall osgManipulator::PointerInfo::~PointerInfo(void)" (__imp_??1PointerInfo@osgManipulator@@QAE@XZ),该符号在函数 "public: virtual __thiscall PickModelHandler::~PickModelHandler(void)" (??1PickModelHandler@@UAE@XZ) 中被引用
1>F:\OSG\dragger\Debug\dragger.exe : fatal error LNK1120: 25 个无法解析的外部命令
如果能告诉我怎么看着问题就好了,授之以渔么。 |
|