工程是基于64位的
1
Error 26 error C2491: 'HUDManager::_viewport' : definition of dllimport static data member not allowed E:\SkyP2M_V1.0\pmVisualization\pmVisualization\HUDManager.cpp 8 osgPC 1

VS下 dllimport与dllexport作用与区别 :https://www.cnblogs.com/foohack/p/4119207.html
简单直接介绍:https://www.cnblogs.com/nzbbody/p/3448385.html
加上预定义宏“PMVISUALIZATION_EXPORT_LIBRARY” : https://blog.csdn.net/gengxt2003/article/details/6417780
2
Error 84 error C1189: #error : ERROR macro is defined. Define GLOG_NO_ABBREVIATED_SEVERITIES before including logging.h. See the document for detail. E:\SkyP2M_V1.0\code_lib64\include\glog\log_severity.h 55 osgPC 1

SRE实战 互联网时代守护先锋,助力企业售后服务体系运筹帷幄!一键直达领取阿里云限量特价优惠。

关于Glog/log_severity.h 日志使用中预定义宏冲突的解决: http://www.voidcn.com/article/p-mkgmbinx-bdc.html
3
Error 140 error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual void __thiscall osg::Node::ascend(class osg::NodeVisitor &)" (__imp_?ascend@Node@osg@@UAEXAAVNodeVisitor@2@@Z) E:\SkyP2M_V1.0\pmPanoramaCache\pmPanoramaCache\create_panorma.obj pmPanoramaCache

扫码关注我们
微信号:SRE实战
拒绝背锅 运筹帷幄