Title: [osg-users] CVS 6.0 version : link error please help

Hi,

Have you entered the correct library files in the project files, I am assuming you are using Visual Studio?

For example “osgdbd.lib” for debug and “osgdb.lib” for release versions of your project files, It looks like osgdb.lib, osg.lib are not specified in your project files.

Also have specified your project as a static build when you probably wanted Multi threaded Debug/Release DLL (go to Project properties then C++->Code Generation->runtime library), and of course make sure you have specified the path to the osg library files, as well as the header files within Visual Studio so it knows where to look.

 

 

Hope it helps?

Martin.

 

 

 

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of DESCHAMPS.Sophie
Sent: 16 June 2006 08:11
To: osg users
Subject: [osg-users] CVS 6.0 version : link error please help

 

Hi,

I try to compil my first Win32 application using OpenSceneGraph with CVS 6.0. The compilation is ok but when linking i have got the above errors :

osgcamera.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall osgUtil::SceneView::cullStage(class osg::Matrixd const &,class osg::Matrixd const &,class osgUtil::CullVisitor *,class osgUtil::StateGraph *,class osgUtil:

:RenderStage *)" ([EMAIL PROTECTED]@osgUtil@@[EMAIL PROTECTED]@@[EMAIL PROTECTED]
...

osg::CameraNode::~CameraNode(void)" ([EMAIL PROTECTED]@@[EMAIL PROTECTED])
osgcamera.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) class osg::Node * __cdecl osgDB::readNodeFiles(class osg::ArgumentParser &,class osgDB::ReaderWriter::Options const *)" ([EMAIL PROTECTED]@@[EMAIL PROTECTED]@@AAVA

[EMAIL PROTECTED]@[EMAIL PROTECTED]@1@@Z)
osgcamera.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class osgDB::ReaderWriter::Options * __thiscall osgDB::Registry::getOptions(void)" ([EMAIL PROTECTED]@osgDB@@[EMAIL PROTECTED]@[EMAIL PROTECTED])

osgcamera.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual void __thiscall osg::BarrierOperation::release(void)" ([EMAIL PROTECTED]@osg@@UAEXXZ)

../../../bin/osgcamerad.exe : fatal error LNK1120: 103 unresolved externals
Error executing link.exe.

So it seems that CVS doesn't know osg functions.

Can you help me?

Regards

Sophie Deschamps

_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to