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

Voerman, L. l.voerman at rug.nl
Wed Mar 23 01:23:19 PDT 2016


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 <osgforum at tevs.eu> 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
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20160323/c2c6765b/attachment-0002.htm>


More information about the osg-users mailing list