Hi Diwas, as you don't mention it I think you did not create a x64 configuration for your project, the default new project is a 32 bit project. In visual studio in below the menus is a bar with two drop down lists, one with "Release" and one with "Win32", below the Win32 is an option called "Configuration manager" hiding the option to generate a x64 version of your project. Regards, Laurens.
On Tue, Mar 22, 2016 at 5:09 PM, Diwas Bhattarai <[email protected]> wrote: > Hi, > > Here is the link to the Errors that I get. http:// pastebin. com /0Z6Zk553 > > Following is the code that I compile. > > *Code:* > > > > > > #include > #include > #include > #include > #include > #include > #include > > int > main() > { > //create a viewer > osgViewer::Viewer viewer; > viewer.setCameraManipulator( > new > osgGA::TrackballManipulator()); > // Load a model > osg::Node* modelNode = osgDB::readNodeFile("cow.osg"); > if > (!modelNode) > { > std::cout <<" could not find model "<< std::endl; > return 0; > } > osg::Group* root = new osg::Group(); > root->addChild(modelNode); > viewer.setSceneData(root); > while > (!viewer.done()) > { > viewer.frame(); > } > } > > > > > I tried /MD also but same problem. > > Thank you! > > Cheers, > Diwas[/code] > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=66594#66594 > > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > >
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

