|
环境是 eclipse +mingw osg已经编译好了, 在运行第一个osg程序时
#include <osgViewer/Viewer>
#include <osgDB/ReadFile>
int main(int, char **)
{
osgViewer::Viewer viewer;
viewer.setSceneData(osgDB::readNodeFile("cow.osg"));
return
} viewer.run();
编译提示以下错误 :
undefined reference to `_imp___ZN9osgViewer6Viewer12setSceneDataEPN3osg4NodeE'
....
undefined reference to `_imp___ZN9osgViewer6Viewer3runEv'
.... |
|