[osg-users] [build] error LNK2019: unresolved external symbol "__declspec(dllimport)

Vincent Bourdier vincent.bourdier at gmail.com
Wed Nov 4 02:29:51 PST 2009


Hi Manish

Did you add osgDB.lib in the linker input ?

Vincent.

manish Choudhary a écrit :
> Hi,
>
> I'm trying to build  osg project. I'm having some problems during linking time :-
> 1>Linking...
>
> 1>AutoTransform.obj :
>
>
>  error LNK2019: unresolved external symbol "__declspec(dllimport) bool __cdecl osgDB::writeImageFile(class osg::Image const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class osgDB::ReaderWriter::Options const *)" (__imp_?writeImageFile at osgDB@@YA_NABVImage at osg@@ABV?$basic_string at DU?$char_traits at D@std@@V?$allocator at D@2@@std@@PBVOptions at ReaderWriter@1@@Z) referenced in function "bool __cdecl osgDB::writeImageFile(class osg::Image const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?writeImageFile at osgDB@@YA_NABVImage at osg@@ABV?$basic_string at DU?$char_traits at D@std@@V?$allocator at D@2@@std@@@Z)
>
>
>
> 1>AutoTransform.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class osgDB::ReaderWriter::Options * __thiscall osgDB::Registry::getOptions(void)" (__imp_?getOptions at Registry@osgDB@@QAEPAVOptions at ReaderWriter@2 at XZ) referenced in function "bool __cdecl osgDB::writeImageFile(class osg::Image const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?writeImageFile at osgDB@@YA_NABVImage at osg@@ABV?$basic_string at DU?$char_traits at D@std@@V?$allocator at D@2@@std@@@Z)
>
>
>
>
> 1>AutoTransform.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static class osgDB::Registry * __cdecl osgDB::Registry::instance(bool)" (__imp_?instance at Registry@osgDB@@SAPAV12 at _N@Z) referenced in function "bool __cdecl osgDB::writeImageFile(class osg::Image const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?writeImageFile at osgDB@@YA_NABVImage at osg@@ABV?$basic_string at DU?$char_traits at D@std@@V?$allocator at D@2@@std@@@Z)
>
>
>
>
> 1>AutoTransform.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) class osg::Image * __cdecl osgDB::readImageFile(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class osgDB::ReaderWriter::Options const *)" (__imp_?readImageFile at osgDB@@YAPAVImage at osg@@ABV?$basic_string at DU?$char_traits at D@std@@V?$allocator at D@2@@std@@PBVOptions at ReaderWriter@1@@Z) referenced in function "class osg::Image * __cdecl osgDB::readImageFile(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?readImageFile at osgDB@@YAPAVImage at osg@@ABV?$basic_string at DU?$char_traits at D@std@@V?$allocator at D@2@@std@@@Z)
>
>
> 1>C:\OSG\Program\AutoTransform\Debug\AutoTransform.exe : fatal error LNK1120: 4 unresolved externals 
> [/code/]
>
> What is wrong? 
>
>
>
>
> Thank you!
>
> Cheers,
> manish
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=19151#19151
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>   


__________ Information from ESET NOD32 Antivirus, version of virus signature database 4571 (20091104) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com




More information about the osg-users mailing list