|
- 1>April23_logo.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall osgViewer::Viewer::`vbase destructor'(void)" (__imp_??_DViewer@osgViewer@@QAEXXZ) referenced in function _main
- 1>April23_logo.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall osgViewer::Viewer::Viewer(void)" (__imp_??0Viewer@osgViewer@@QAE@XZ) referenced in function _main
- 1>C:\Users\mirro_000\documents\visual studio 2010\Projects\April23_logo\Debug\April23_logo.exe : fatal error LNK1120: 2 unresolved externals
- 1>
复制代码
#include <osg/Geode>
#include <osg/ShapeDrawable>
#include <osg/Material>
#include <osg/Texture2D>
#include <osg/Geometry>
#include <osg/MatrixTransform>
#include <osg/PositionAttitudeTransform>
#include <osg/BlendFunc>
#include <osg/ClearNode>
#include <osg/Version>
#include <osgUtil/Tessellator>
#include <osgUtil/CullVisitor>
#include <osgText/Text>
#include <osgGA/TrackballManipulator>
#include <osgViewer/Viewer>
#include <osgDB/ReadFile>
#include <iostream>
#pragma comment( lib, "osgd.lib")
#pragma comment( lib, "osgViewerd.lib")
#pragma comment( lib, "osgDBd.lib")
#pragma comment( lib, "OpenThreadsd.lib")
#pragma comment( lib, "osgUtild.lib")
#pragma comment( lib, "osgGAd.lib")
#pragma comment( lib, "osgTextd.lib")
#pragma comment( lib, "osgSimd.lib")
int main( int argc, char **argv )
{
osgViewer::Viewer a;
//viewer.setSceneData( osgDB::readNodeFile( "C:\\OSG\\osg\\cow.osg" ) );
return 0;//viewer.run();
} |
|