Hi Marcus
I don't know what the problem is, the first three unresolved external symbols should be in osg.lib (4th is in osgViewer.lib). As osg.lib is in the additional dependencies you mention, I can only recommend you check the LIBPATH (Project Property's->Linker->General->Additional Library Directories)

Laurens.

L:\osg\osg_svn\OpenSceneGraph\VisualStudio8\lib\minsizerel>grep [EMAIL PROTECTED]@osg@@[EMAIL PROTECTED] *
Binary file osg.lib matches

L:\osg\osg_svn\OpenSceneGraph\VisualStudio8\lib\minsizerel>grep [EMAIL PROTECTED]@@[EMAIL PROTECTED] *
Binary file osg.lib matches

L:\osg\osg_svn\OpenSceneGraph\VisualStudio8\lib\minsizerel>grep [EMAIL PROTECTED]@osg@@[EMAIL PROTECTED]@@Z *
Binary file osg.lib matches

L:\osg\osg_svn\OpenSceneGraph\VisualStudio8\lib\minsizerel>dumpbin /exports osg.dll | grep [EMAIL PROTECTED]@osg@@[EMAIL PROTECTED]
       4466 1171 0006CF28 [EMAIL PROTECTED]@osg@@[EMAIL PROTECTED]

L:\osg\osg_svn\OpenSceneGraph\VisualStudio8\lib\minsizerel>dumpbin /exports osg.dll | grep [EMAIL PROTECTED]@@[EMAIL PROTECTED]
         47   2E 0002B4E6 [EMAIL PROTECTED]@@[EMAIL PROTECTED]

L:\osg\osg_svn\OpenSceneGraph\VisualStudio8\lib\minsizerel>dumpbin /exports osg.dll | grep [EMAIL PROTECTED]@osg@@[EMAIL PROTECTED]@@Z
       1036  40B 00013316 [EMAIL PROTECTED]@osg@@[EMAIL PROTECTED]@@Z


L:\osg\osg_svn\OpenSceneGraph\VisualStudio8\lib\minsizerel>grep [EMAIL PROTECTED]@osgViewer@@UAEHXZ *
Binary file osgViewer.lib matches

L:\osg\osg_svn\OpenSceneGraph\VisualStudio8\lib\minsizerel>dumpbin /exports osgviewer.dll | grep [EMAIL PROTECTED]@osgViewer@@UAEHXZ
        210   D1 00017A74 [EMAIL PROTECTED]@osgViewer@@UAEHXZ

Marcus Fritzen wrote:
Hi,

I had added the following libraries as additional dependencies:

OpenThreadsWin32.lib
opengl32.lib
osgDB.lib
osgUtil.lib
osg.lib
osgGA.lib

but when I want to compile my own project I get the following errors:

main.obj : error LNK2001: unresolved external symbol ""__declspec(dllimport) public: virtual void __thiscall osg::Referenced::setThreadSafeRefUnref(bool)" ([EMAIL PROTECTED]@osg@@[EMAIL PROTECTED])". main.obj : error LNK2001: unresolved external symbol ""__declspec(dllimport) public: __thiscall osg::Camera::Camera(void)" ([EMAIL PROTECTED]@@[EMAIL PROTECTED])". main.obj : error LNK2001: unresolved external symbol ""__declspec(dllimport) public: virtual void __thiscall osg::Camera::accept(class osg::NodeVisitor &)" ([EMAIL PROTECTED]@osg@@[EMAIL PROTECTED]@@Z)". main.obj : error LNK2001: unresolved external symbol ""__declspec(dllimport) public: virtual int __thiscall osgViewer::Viewer::run(void)" ([EMAIL PROTECTED]@osgViewer@@UAEHXZ)".
.....
and some more of them.
I think there is missing a lib or more, but I don't know wich.
In my project I include <osg/Camera> and create just a new camera with osg::Camera *camera = new osg::Camera and so on...

Thank for your help!


Thibault Genessay schrieb:
Hi Marcus

The samples in the OpenSceneGraph solution do not contain additional dependencies because they use the built-in dependency mechanism. If you want to build your own project based on the OSG in a separate solution, you have to add the libraries osg[d].lib, osgDB[d].lib, and so on to the Additional Dependencies field.

If this does not solve your problem, please paste-in the error messages as it is easier for us to tell what is going on based on your compiler's complaints :)

Thibault


On 5/14/07, *Marcus Fritzen* <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote:

    Hi,

I am trying to implement a shadowmapping algorithem in osg. I know how
    it works with openGL. Now I want to try the new osg develop
    release, but
    I don't know how to use it with Visual Studio 2005, because there
    are no
    libraries which I can additional include and so I get when compiling
    linker errors for example when I want to use the new osg::camera.
    Perhaps anybody can help me.

    Marcus

    --
    ----------------------------------------------------------------
    Marcus Fritzen                  E-mail: [EMAIL PROTECTED]
    <mailto:[EMAIL PROTECTED]>
    University Koblenz              Mobil:  +491786867360
    Triererstr. 105, 56072 Koblenz,
    HIWI FB4 Herr Jackel
    ----------------------------------------------------------------

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


------------------------------------------------------------------------

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

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

Reply via email to