Hi all,
I just downloaded OSG 1.9.7 and am trying to write a simple (?) MFC
application (based on the osgViewerMFC example code).
My application worked pretty well with 1.9.6, but changing to 1.9.7 introduces
the following linker error:
============================================================================
1>Linking...
1>MFC_OSG.obj : error LNK2001: unresolved external symbol "public: virtual
class osgViewer::GraphicsWindowEmbedded * __thiscall
osgViewer::Viewer::setUpViewerAsEmbeddedInWindow(int,int,int,int)" ([EMAIL
PROTECTED]@osgViewer@@[EMAIL PROTECTED]@[EMAIL PROTECTED])
1>D:\NSF_VIS\Sandbox\PointLabeling\Debug\PointLabeling.exe : fatal error
LNK1120: 1 unresolved externals
============================================================================
I browsed through the source code and the said function is defined in the file
osgViewer/Viewer as below
GraphicsWindowEmbedded* Viewer::setUpViewerAsEmbeddedInWindow(int x, int y, int
width, int height)
{
setThreadingModel(SingleThreaded);
osgViewer::GraphicsWindowEmbedded* gw = new
osgViewer::GraphicsWindowEmbedded(x,y,width,height);
getCamera()->setViewport(new osg::Viewport(0,0,width,height));
getCamera()->setGraphicsContext(gw);
return gw;
}
Please help !!
Thanks in advance :)
Pushpak
____________________________________________________________________________________
Pinpoint customers who are looking for what you sell.
http://searchmarketing.yahoo.com/
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/