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_?writeimagef...@osgdb@@ya_nabvim...@osg@@abv?$basic_str...@du?$char_traits@d...@std@@v?$alloca...@d@2@@std@@pbvopti...@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 &)" 
(?writeimagef...@osgdb@@ya_nabvim...@osg@@abv?$basic_str...@du?$char_traits@d...@std@@v?$alloca...@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_?getopti...@registry@osgDB@@qaepavopti...@readerwriter@2...@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 &)" 
(?writeimagef...@osgdb@@ya_nabvim...@osg@@abv?$basic_str...@du?$char_traits@d...@std@@v?$alloca...@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_?insta...@registry@osgDB@@sapa...@_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 &)" 
(?writeimagef...@osgdb@@ya_nabvim...@osg@@abv?$basic_str...@du?$char_traits@d...@std@@v?$alloca...@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_?readimagef...@osgdb@@yapavim...@osg@@abv?$basic_str...@du?$char_traits@d...@std@@v?$alloca...@d@2@@std@@pbvopti...@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 &)" 
(?readimagef...@osgdb@@yapavim...@osg@@abv?$basic_str...@du?$char_traits@d...@std@@v?$alloca...@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
[email protected]
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


_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to