c++ - error LNK2019: unresolved external symbol "public: -


i creating torrent application using libtorrent in vs 2008. tried example given in link http://www.rasterbar.com/products/libtorrent/examples.html showing me these error....how solve them?

linking... main.obj : error lnk2019: unresolved external symbol "public: __thiscall libtorrent::torrent_info::~torrent_info(void)" (??1torrent_info@libtorrent@@qae@xz) referenced in function _main main.obj : error lnk2019: unresolved external symbol "public: __thiscall libtorrent::torrent_info::torrent_info(struct libtorrent::lazy_entry const &)" (??0torrent_info@libtorrent@@qae@abulazy_entry@1@@z) referenced in function _main main.obj : error lnk2019: unresolved external symbol "class std::basic_ostream > & __cdecl libtorrent::operator<<(class std::basic_ostream > &,struct libtorrent::lazy_entry const &)" (??6libtorrent@@yaaav?$basic_ostream@du?$char_traits@d@std@@@std@@aav12@abulazy_entry@0@@z) referenced in function _main main.obj : error lnk2019: unresolved external symbol "int __cdecl libtorrent::lazy_bdecode(char const *,char const *,struct libtorrent::lazy_entry &,int)" (?lazy_bdecode@libtorrent@@yahpbd0aaulazy_entry@1@h@z) referenced in function _main main.obj : error lnk2019: unresolved external symbol "public: void __thiscall libtorrent::lazy_entry::clear(void)" (?clear@lazy_entry@libtorrent@@qaexxz) referenced in function "public: __thiscall libtorrent::lazy_entry::~lazy_entry(void)" (??1lazy_entry@libtorrent@@qae@xz) main.obj : error lnk2019: unresolved external symbol "void __cdecl libtorrent::to_hex(char const *,int,char *)" (?to_hex@libtorrent@@yaxpbdhpad@z) referenced in function "class std::basic_ostream > & __cdecl libtorrent::operator<<(class std::basic_ostream > &,class libtorrent::big_number const &)" (??6libtorrent@@yaaav?$basic_ostream@du?$char_traits@d@std@@@std@@aav12@abvbig_number@0@@z) main.obj : error lnk2019: unresolved external symbol "public: struct libtorrent::peer_request __thiscall libtorrent::file_storage::map_file(int,__int64,int)const " (?map_file@file_storage@libtorrent@@qbe?aupeer_request@2@h_jh@z) referenced in function "public: struct libtorrent::peer_request __thiscall libtorrent::torrent_info::map_file(int,__int64,int)const " (?map_file@torrent_info@libtorrent@@qbe?aupeer_request@2@h_jh@z) c:\users\photoshop3\documents\visual studio 2008\projects\lib2\debug\lib2.exe : fatal error lnk1120: 7 unresolved externals 

the .lib not included in project. make sure linking in; configuration properties -> linker -> input -> additional dependencies

another altnerative copy .lib project folder don't, it's bound create problems later on.

sometimes .lib not shipped library, need compile yourself. readme tell this. if case, ship .sln file can open , compile .lib file reference in main application, wrote above


Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -