[osg-users] LNK4217, LNK2019 Errors when compiling OSG

Matthew.Little at l-3com.com Matthew.Little at l-3com.com
Thu May 1 12:43:22 PDT 2008


Hey dtidev,

 

First you have to make sure you have the .libs for those classes
included in your project.

Also your executable will need access to the corresponding .dlls for
those classes. E.g. Copy the dlls to the directory where your executable
is.  

 

________________________________

From: osg-users-bounces at lists.openscenegraph.org
[mailto:osg-users-bounces at lists.openscenegraph.org] On Behalf Of
dtidev at aol.com
Sent: Thursday, May 01, 2008 3:06 PM
To: osg-users at lists.openscenegraph.org
Subject: [osg-users] LNK4217, LNK2019 Errors when compiling OSG

 

Greetings - 



In compiling osg 1.2, I am getting the following problems:

LNK4217 - Locally defined symbol warning: 

osgplanets.obj : warning LNK4217: locally defined symbol
??0Array at osg@@QAE at W4Type@01 at HI@Z (public: __thiscall
osg::Array::Array(enum osg::Array::Type,int,unsigned int)) imported in
function "public: __thiscall osg::TemplateArray<class
osg::Vec3f,10,3,5126>::TemplateArray<class
osg::Vec3f,10,3,5126>(unsigned int)"
(??0?$TemplateArray at VVec3f@osg@@$09$02$0BEAG@@osg@@QAE at I@Z)



LNK2019 - Locally defined symbol warning: 

osgplanets.obj : error LNK2019: unresolved external symbol
"__declspec(dllimport) public: void __thiscall
osg::AnimationPath::setLoopMode(enum osg::AnimationPath::LoopMode)"
(__imp_?setLoopMode at AnimationPath@osg@@QAEXW4LoopMode at 12@@Z) referenced
in function "class osg::AnimationPath * __cdecl
createAnimationPath(class osg::Vec3f const &,float,double)"
(?createAnimationPath@@YAPAVAnimationPath at osg@@ABVVec3f at 2@MN at Z)



All of the stuff i can find on unresolved externals is make sure all
projects are compiled with /MTd for threading.
Really not sure what to do about LNK4217



Has anybody compiled OSG successfully on windows?

I've tried visual studio 2005 and 2008.

Any advice would be most helpful.
Thanks!

________________________________

Plan your next roadtrip with MapQuest.com
<http://www.mapquest.com/?ncid=mpqmap00030000000004> : America's #1
Mapping Site. 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20080501/3fa5d74c/attachment.htm 


More information about the osg-users mailing list