On Friday 24 September 2010 16:27:58 Matt Caron wrote:
> Hi,
>
> I built OSG from source on Windows and I have just gotten past the Hello
> World program. I am now trying to load a mesh using the following line:
>
>
> Code:
>
> osg::Node* pLoadedModel = osgDB::readNodeFile("cow.osg");
>
>
>
>
> However I get the following error:
>
> 1>..\HelloWorld2\HelloWorld.cpp(8) : error C2039: 'readNodeFile' : is not a
> member of 'osgDB' 1>..\HelloWorld2\HelloWorld.cpp(8) : error C3861:
> 'readNodeFile': identifier not found
>
> Now I suppose this makes sense because while I have a directory called
> osgDB/ with all of the osgDB classes in it, I don't have any header file
> for "osgDB" itself.
>
> Can anyone tell me where the lib for osgDB should be? Or clarify what is
> going wrong here?
>
It's not quite clear from your message if your code includes the header needed
for readNodeFile().
Do you have
#include <osgDB/ReadFile>
in your code?
HTH,
Magnus
>
> Thank you!
>
> Cheers,
> Matt[/code]
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=32038#32038
>
>
>
>
>
> _______________________________________________
> 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