[osg-users] [forum] how can i static link to OSG

55 views
Skip to first unread message

lee xingshun

unread,
Jun 11, 2018, 2:46:04 AM6/11/18
to osg-...@lists.openscenegraph.org
Hi,

while i using staic link libarary to write a demo,i found many error link 2019
this is my code ,have anybody know? do i need link the lib file or not ?

code:from website using static libarary osg

Thank you!

Cheers,
lee

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=74019#74019




Attachments:
http://forum.openscenegraph.org//files/win32project1_147.cpp


_______________________________________________
osg-users mailing list
osg-...@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Voerman, L.

unread,
Jun 11, 2018, 4:04:28 AM6/11/18
to OpenSceneGraph Users
Hi Lee,
you will need to link to the static libraries, and there will be quite a few.
something like:
OpenThreads.lib;osg.lib;osgDB.lib;osgUtil.lib;osgText.lib;osgViewer.lib;osgGA.lib;osgdb_ive.lib;osgdb_osg.lib;osgdb_deprecated_osg.lib;osgdb_deprecated_osgparticle.lib;osgdb_deprecated_osganimation.lib;osgdb_deprecated_osgfx.lib;osgdb_deprecated_osgsim.lib;osgdb_deprecated_osgtext.lib;osgdb_deprecated_osgviewer.lib;osgdb_deprecated_osgshadow.lib;osgdb_deprecated_osgterrain.lib;osgdb_deprecated_osgvolume.lib;osgdb_deprecated_osgwidget.lib;osgdb_serializers_osg.lib;osgdb_serializers_osgparticle.lib;osgdb_serializers_osgtext.lib;osgdb_serializers_osgterrain.lib;osgdb_serializers_osganimation.lib;osgdb_serializers_osgfx.lib;osgdb_serializers_osgshadow.lib;osgdb_serializers_osgmanipulator.lib;osgdb_serializers_osgsim.lib;osgdb_serializers_osgvolume.lib

could resolve your linking errors.
Laurens.

On Sun, Jun 10, 2018 at 11:16 AM, lee xingshun <ecsup...@163.com> wrote:
Hi,

while i using staic link libarary to write a demo,i found many error link 2019
this is my code ,have anybody know? do i need link the lib file or not ?

code:from website using static libarary osg

Thank you!

Cheers,
lee

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=74019#74019




Attachments:
http://forum.openscenegraph.org//files/win32project1_147.cpp


_______________________________________________
osg-users mailing list

Alberto Luaces

unread,
Jun 11, 2018, 4:05:05 AM6/11/18
to osg-...@lists.openscenegraph.org
"lee xingshun" writes:

> Hi,
>
> while i using staic link libarary to write a demo,i found many error link 2019
> this is my code ,have anybody know? do i need link the lib file or not ?

Hi, so link 2019 means "unresolved external symbol - function". Can you
please copy the names of the unresolved symbols the linker is missing?

--
Alberto
Reply all
Reply to author
Forward
0 new messages