osg:error LNK2019

来源:互联网 发布:八达岭长城 知乎 编辑:程序博客网 时间:2024/06/18 03:51

1>findNodeVisitor.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: void __thiscall osgSim::DOFTransform::setAnimationOn(bool)" (__imp_?setAnimationOn@DOFTransform@osgSim@@QAEX_N@Z),该符号在函数 "public: virtual void __thiscall findNodeVisitor::apply(class osg::Transform &)" (?apply@findNodeVisitor@@UAEXAAVTransform@osg@@@Z) 中被引用
1>E:/0OSG/p0201_遍历3/Debug/1geometry.exe : fatal error LNK1120: 1 个无法解析的外部命令

 

解决:

 

 项目-属性-配置属性-链接器-输入-附加依赖项-加入 osgSimd.lib