[osg-users] [build] When writing my own software and integrating openscenegraph, LNK error is thrown out.

Diwas Bhattarai osgforum at tevs.eu
Tue Mar 22 09:09:57 PDT 2016


Hi,

Here is the link to the Errors that I get. http:// pastebin. com /0Z6Zk553

Following is the code that I compile.

Code:
#include <iostream>
#include<iostream>
#include<osg/Group>
#include<osg/Node>
#include<osgDB/ReadFile>
#include<osgViewer/Viewer>
#include<osgGA/TrackballManipulator>

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




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20160322/b3c3bc50/attachment-0003.htm>


More information about the osg-users mailing list