I'm trying to compile my app with a static library and I got these error:
3>LIBCMT.lib(stdexcpt.obj) : error LNK2005: "public: __thiscall std::bad_cast::bad_cast(char const *)" (??0bad_cast#std##QAE#PBD#Z) already defined in QuestLoaderLib.lib(QuestLoader.obj)
3>LIBCMT.lib(stdexcpt.obj) : error LNK2005: "public: virtual __thiscall std::bad_cast::~bad_cast(void)" (??1bad_cast#std##UAE#XZ) already defined in QuestLoaderLib.lib(QuestLoader.obj)
3>LIBCMT.lib(stdexcpt.obj) : error LNK2005: "public: __thiscall std::bad_cast::bad_cast(class std::bad_cast const &)" (??0bad_cast#std##QAE#ABV01##Z) already defined in QuestLoaderLib.lib(QuestLoader.obj)
3>QuestLoaderLib.lib(QuestLoader.obj) : error LNK2019: unresolved external symbol "public: __thiscall std::ios_base::Init::Init(void)" (??0Init#ios_base#std##QAE#XZ) referenced in function _$E14
3>QuestLoaderLib.lib(QuestLoader.obj) : error LNK2019: unresolved external symbol "public: __thiscall std::ios_base::Init::~Init(void)" (??1Init#ios_base#std##QAE#XZ) referenced in function _$E15
3>QuestLoaderLib.lib(QuestLoader.obj) : error LNK2019: unresolved external symbol "public: bool __thiscall std::locale::_Iscloc(void)const " (?_Iscloc#locale#std##QBE_NXZ) referenced in function "public: class std::basic_ostream<char,struct std::char_traits<char> > & __thiscall std::basic_ostream<char,struct std::char_traits<char> >::operator<<(int)" (??6?$basic_ostream#DU?$char_traits#D#std###std##QAEAAV01#H#Z)
3>QuestLoaderLib.lib(QuestLoader.obj) : error LNK2019: unresolved external symbol "public: class std::locale::facet const * __thiscall std::locale::_Getfacet(unsigned int,bool)const " (?_Getfacet#locale#std##QBEPBVfacet#12#I_N#Z) referenced in function "public: class std::basic_ostream<char,struct std::char_traits<char> > & __thiscall std::basic_ostream<char,struct std::char_traits<char> >::operator<<(int)" (??6?$basic_ostream#DU?$char_traits#D#std###std##QAEAAV01#H#Z)
3>QuestLoaderLib.lib(QuestLoader.obj) : error LNK2019: unresolved external symbol "void __cdecl std::_Xlen(void)" (?_Xlen#std##YAXXZ) referenced in function "protected: virtual class std::ostreambuf_iterator<char,struct std::char_traits<char> > __thiscall std::num_put<char,class std::ostreambuf_iterator<char,struct std::char_traits<char> > >::do_put(class std::ostreambuf_iterator<char,struct std::char_traits<char> >,class std::ios_base &,char,bool)const " (?do_put#?$num_put#DV?$ostreambuf_iterator#DU?$char_traits#D#std###std###std##MBE?AV?$ostreambuf_iterator#DU?$char_traits#D#std###2#V32#AAVios_base#2#D_N#Z)
3>QuestLoaderLib.lib(QuestLoader.obj) : error LNK2019: unresolved external symbol "void __cdecl std::_Xran(void)" (?_Xran#std##YAXXZ) referenced in function "public: class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > & __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::assign(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,unsigned int,unsigned int)" (?assign#?$basic_string#DU?$char_traits#D#std##V?$allocator#D#2##std##QAEAAV12#ABV12#II#Z)
Both my app and QuestLoaderLib.lib are compiled with /MT option. How to fix this?
Related
I've installed mapnik via vcpkg: vcpkg install mapnik
Also I've downloaded sources of mapnik and trying to build mapnik's demo c++ & Qt project - viewer - https://github.com/mapnik/mapnik/tree/master/demo/viewer
Also I have Visual Studio 2019 & Qt 5.12.4 for msvc2017.
I import viewer.pro file into Visual Studio, change Solution's Qt Version from x64 to x86, change compiler from 2019 to 2017 (v141) and get the build errors:
1>layer_info_dialog.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class std::_Tree_iterator<class std::_Tree_val<struct std::_Tree_simple_types<struct std::pair<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const ,struct mapnik::value_holder> > > > __thiscall std::_Tree<class std::_Tmap_traits<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,struct mapnik::value_holder,struct std::less<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > >,class std::allocator<struct std::pair<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const ,struct mapnik::value_holder> >,0> >::begin(void)" (__imp_?begin#?$_Tree#V?$_Tmap_traits#V?$basic_string#DU?$char_traits#D#std##V?$allocator#D#2##std##Uvalue_holder#mapnik##U?$less#V?$basic_string#DU?$char_traits#D#std##V?$allocator#D#2##std###2#V?$allocator#U?$pair#$$CBV?$basic_string#DU?$char_traits#D#std##V?$allocator#D#2##std##Uvalue_holder#mapnik###std###2#$0A##std###std##QAE?AV?$_Tree_iterator#V?$_Tree_val#U?$_Tree_simple_types#U?$pair#$$CBV?$basic_string#DU?$char_traits#D#std##V?$allocator#D#2##std##Uvalue_holder#mapnik###std###std###std###2#XZ) referenced in function "public: __thiscall layer_info_dialog::layer_info_dialog(class mapnik::layer &,class QWidget *)" (??0layer_info_dialog##QAE#AAVlayer#mapnik##PAVQWidget###Z)
1>layer_info_dialog.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class std::_Tree_iterator<class std::_Tree_val<struct std::_Tree_simple_types<struct std::pair<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const ,struct mapnik::value_holder> > > > __thiscall std::_Tree<class std::_Tmap_traits<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,struct mapnik::value_holder,struct std::less<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > >,class std::allocator<struct std::pair<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const ,struct mapnik::value_holder> >,0> >::end(void)" (__imp_?end#?$_Tree#V?$_Tmap_traits#V?$basic_string#DU?$char_traits#D#std##V?$allocator#D#2##std##Uvalue_holder#mapnik##U?$less#V?$basic_string#DU?$char_traits#D#std##V?$allocator#D#2##std###2#V?$allocator#U?$pair#$$CBV?$basic_string#DU?$char_traits#D#std##V?$allocator#D#2##std##Uvalue_holder#mapnik###std###2#$0A##std###std##QAE?AV?$_Tree_iterator#V?$_Tree_val#U?$_Tree_simple_types#U?$pair#$$CBV?$basic_string#DU?$char_traits#D#std##V?$allocator#D#2##std##Uvalue_holder#mapnik###std###std###std###2#XZ) referenced in function "public: __thiscall layer_info_dialog::layer_info_dialog(class mapnik::layer &,class QWidget *)" (??0layer_info_dialog##QAE#AAVlayer#mapnik##PAVQWidget###Z)
1>layer_info_dialog.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: unsigned int __thiscall std::_Tree<class std::_Tmap_traits<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,struct mapnik::value_holder,struct std::less<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > >,class std::allocator<struct std::pair<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const ,struct mapnik::value_holder> >,0> >::size(void)const " (__imp_?size#?$_Tree#V?$_Tmap_traits#V?$basic_string#DU?$char_traits#D#std##V?$allocator#D#2##std##Uvalue_holder#mapnik##U?$less#V?$basic_string#DU?$char_traits#D#std##V?$allocator#D#2##std###2#V?$allocator#U?$pair#$$CBV?$basic_string#DU?$char_traits#D#std##V?$allocator#D#2##std##Uvalue_holder#mapnik###std###2#$0A##std###std##QBEIXZ) referenced in function "public: __thiscall layer_info_dialog::layer_info_dialog(class mapnik::layer &,class QWidget *)" (??0layer_info_dialog##QAE#AAVlayer#mapnik##PAVQWidget###Z)
1>layer_info_dialog.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall mapnik::parameters::~parameters(void)" (__imp_??1parameters#mapnik##QAE#XZ) referenced in function "public: __thiscall layer_info_dialog::layer_info_dialog(class mapnik::layer &,class QWidget *)" (??0layer_info_dialog##QAE#AAVlayer#mapnik##PAVQWidget###Z)
1>layer_info_dialog.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall mapnik::parameters::parameters(class mapnik::parameters const &)" (__imp_??0parameters#mapnik##QAE#ABV01##Z) referenced in function "public: __thiscall layer_info_dialog::layer_info_dialog(class mapnik::layer &,class QWidget *)" (??0layer_info_dialog##QAE#AAVlayer#mapnik##PAVQWidget###Z)
1>layer_info_dialog.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall mapnik::value_adl_barrier::value::value(void)" (__imp_??0value#value_adl_barrier#mapnik##QAE#XZ) referenced in function "void __cdecl mapnik::`dynamic initializer for 'default_feature_value''(void)" (??__Edefault_feature_value#mapnik##YAXXZ)
1>mapwidget.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall mapnik::value_adl_barrier::value::value(void)" (__imp_??0value#value_adl_barrier#mapnik##QAE#XZ)
1>styles_model.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall mapnik::value_adl_barrier::value::value(void)" (__imp_??0value#value_adl_barrier#mapnik##QAE#XZ)
1>layer_info_dialog.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall mapnik::value_adl_barrier::value::~value(void)" (__imp_??1value#value_adl_barrier#mapnik##QAE#XZ) referenced in function "void __cdecl mapnik::`dynamic atexit destructor for 'default_feature_value''(void)" (??__Fdefault_feature_value#mapnik##YAXXZ)
1>mapwidget.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall mapnik::value_adl_barrier::value::~value(void)" (__imp_??1value#value_adl_barrier#mapnik##QAE#XZ)
1>styles_model.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall mapnik::value_adl_barrier::value::~value(void)" (__imp_??1value#value_adl_barrier#mapnik##QAE#XZ)
1>layer_info_dialog.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class mapnik::parameters & __thiscall mapnik::datasource::params(void)" (__imp_?params#datasource#mapnik##QAEAAVparameters#2#XZ) referenced in function "public: __thiscall layer_info_dialog::layer_info_dialog(class mapnik::layer &,class QWidget *)" (??0layer_info_dialog##QAE#AAVlayer#mapnik##PAVQWidget###Z)
1>layer_info_dialog.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const & __thiscall mapnik::layer::name(void)const " (__imp_?name#layer#mapnik##QBEABV?$basic_string#DU?$char_traits#D#std##V?$allocator#D#2##std##XZ) referenced in function "public: __thiscall layer_info_dialog::layer_info_dialog(class mapnik::layer &,class QWidget *)" (??0layer_info_dialog##QAE#AAVlayer#mapnik##PAVQWidget###Z)
1>layerlistmodel.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const & __thiscall mapnik::layer::name(void)const " (__imp_?name#layer#mapnik##QBEABV?$basic_string#DU?$char_traits#D#std##V?$allocator#D#2##std##XZ)
1>mapwidget.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const & __thiscall mapnik::layer::name(void)const " (__imp_?name#layer#mapnik##QBEABV?$basic_string#DU?$char_traits#D#std##V?$allocator#D#2##std##XZ)
1>layer_info_dialog.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class std::shared_ptr<class mapnik::datasource> __thiscall mapnik::layer::datasource(void)const " (__imp_?datasource#layer#mapnik##QBE?AV?$shared_ptr#Vdatasource#mapnik###std##XZ) referenced in function "public: __thiscall layer_info_dialog::layer_info_dialog(class mapnik::layer &,class QWidget *)" (??0layer_info_dialog##QAE#AAVlayer#mapnik##PAVQWidget###Z)
1>layerlistmodel.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class std::vector<class mapnik::layer,class std::allocator<class mapnik::layer> > & __thiscall mapnik::Map::layers(void)" (__imp_?layers#Map#mapnik##QAEAAV?$vector#Vlayer#mapnik##V?$allocator#Vlayer#mapnik###std###std##XZ) referenced in function "public: virtual int __thiscall LayerListModel::rowCount(class QModelIndex const &)const " (?rowCount#LayerListModel##UBEHABVQModelIndex###Z)
1>mapwidget.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class std::vector<class mapnik::layer,class std::allocator<class mapnik::layer> > & __thiscall mapnik::Map::layers(void)" (__imp_?layers#Map#mapnik##QAEAAV?$vector#Vlayer#mapnik##V?$allocator#Vlayer#mapnik###std###std##XZ)
1>layerlistmodel.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: double __thiscall mapnik::Map::scale(void)const " (__imp_?scale#Map#mapnik##QBENXZ) referenced in function "public: virtual class QVariant __thiscall LayerListModel::data(class QModelIndex const &,int)const " (?data#LayerListModel##UBE?AVQVariant##ABVQModelIndex##H#Z)
1>mapwidget.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: double __thiscall mapnik::Map::scale(void)const " (__imp_?scale#Map#mapnik##QBENXZ)
1>layerlistmodel.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall mapnik::layer::set_active(bool)" (__imp_?set_active#layer#mapnik##QAEX_N#Z) referenced in function "public: virtual bool __thiscall LayerListModel::setData(class QModelIndex const &,class QVariant const &,int)" (?setData#LayerListModel##UAE_NABVQModelIndex##ABVQVariant##H#Z)
1>layerlistmodel.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: bool __thiscall mapnik::layer::active(void)const " (__imp_?active#layer#mapnik##QBE_NXZ) referenced in function "public: virtual class QVariant __thiscall LayerListModel::data(class QModelIndex const &,int)const " (?data#LayerListModel##UBE?AVQVariant##ABVQModelIndex##H#Z)
1>layerlistmodel.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: bool __thiscall mapnik::layer::visible(double)const " (__imp_?visible#layer#mapnik##QBE_NN#Z) referenced in function "public: virtual class QVariant __thiscall LayerListModel::data(class QModelIndex const &,int)const " (?data#LayerListModel##UBE?AVQVariant##ABVQModelIndex##H#Z)
1>mapwidget.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: bool __thiscall mapnik::layer::visible(double)const " (__imp_?visible#layer#mapnik##QBE_NN#Z)
1>main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static class mapnik::datasource_cache & __cdecl mapnik::singleton<class mapnik::datasource_cache,class mapnik::CreateStatic>::instance(void)" (__imp_?instance#?$singleton#Vdatasource_cache#mapnik##VCreateStatic#2##mapnik##SAAAVdatasource_cache#2#XZ) referenced in function _main
1>main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: bool __thiscall mapnik::datasource_cache::register_datasources(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,bool)" (__imp_?register_datasources#datasource_cache#mapnik##QAE_NABV?$basic_string#DU?$char_traits#D#std##V?$allocator#D#2##std##_N#Z) referenced in function _main
1>main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static bool __cdecl mapnik::freetype_engine::register_fonts(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,bool)" (__imp_?register_fonts#freetype_engine#mapnik##SA_NABV?$basic_string#DU?$char_traits#D#std##V?$allocator#D#2##std##_N#Z) referenced in function _main
1>main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) void __cdecl mapnik::setup(void)" (__imp_?setup#mapnik##YAXXZ) referenced in function
_mainmapnik::binary_function_call> > > const & __thiscall mapnik::rule::get_filter(void)const " (__imp_?get_filter#rule#mapnik##QBEABV?$shared_ptr#V?$variant#Uvalue_null#mapnik##_NHNVUnicodeString#icu_72##Uattribute#2#Uglobal_attribute#2#Ugeometry_type_attribute#2#V?$recursive_wrapper#U?$unary_node#Unegate#tags#mapnik###mapnik###util#mapbox##V?$recursive_wrapper#U?$binary_node#Uplus#tags#mapnik###mapnik###9mapbox##V?$recursive_wrapper#U?$binary_node#Uminus#tags#mapnik###mapnik###9mapbox##V?$recursive_wrapper#U?$binary_node#Umult#tags#mapnik###mapnik###9mapbox##V?$recursive_wrapper#U?$binary_node#Udiv#tags#mapnik###mapnik###9mapbox##V?$recursive_wrapper#U?$binary_node#Umod#tags#mapnik###mapnik###9mapbox##V?$recursive_wrapper#U?$binary_node#Uless#tags#mapnik###mapnik###9mapbox##V?$recursive_wrapper#U?$binary_node#Uless_equal#tags#mapnik###mapnik###9mapbox##V?$recursive_wrapper#U?$binary_node#Ugreater#tags#mapnik###mapnik###9mapbox##V?$recursive_wrapper#U?$binary_node#Ugreater_equal#tags#mapnik###mapnik###9mapbox##V?$recursive_wrapper#U?$binary_node#Uequal_to#tags#mapnik###mapnik###9mapbox##V?$recursive_wrapper#U?$binary_node#Unot_equal_to#tags#mapnik###mapnik###9mapbox##V?$recursive_wrapper#U?$unary_node#Ulogical_not#tags#mapnik###mapnik###9mapbox##V?$recursive_wrapper#U?$binary_node#Ulogical_and#tags#mapnik###mapnik###9mapbox##V?$recursive_wrapper#U?$binary_node#Ulogical_or#tags#mapnik###mapnik###9mapbox##V?$recursive_wrapper#Uregex_match_node#mapnik###9mapbox##V?$recursive_wrapper#Uregex_replace_node#mapnik###9mapbox##V?$recursive_wrapper#Uunary_function_call#mapnik###9mapbox##V?$recursive_wrapper#Ubinary_function_call#mapnik###9mapbox###util#mapbox###std##XZ) referenced in function "public: class QString __thiscall rule_node::name(void)const " (?name#rule_node##QBE?AVQString##XZ)
1>styles_model.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class std::vector<class mapnik::rule,class std::allocator<class mapnik::rule> > const & __thiscall mapnik::feature_type_style::get_rules(void)const " (__imp_?get_rules#feature_type_style#mapnik##QBEABV?$vector#Vrule#mapnik##V?$allocator#Vrule#mapnik###std###std##XZ) referenced in function "public: __thiscall StyleModel::StyleModel(class std::shared_ptr<class mapnik::Map>,class QObject *)" (??0StyleModel##QAE#V?$shared_ptr#VMap#mapnik###std##PAVQObject###Z)
1>debug\\viewer.exe : fatal error LNK1120: 84 unresolved externals
1>Done building project "viewer.vcxproj" -- FAILED.
How to build the project on msvc and Qt 5?
I complied c++ grpc file using protoc compiler, so i assume that that references should not give any problem.
I added "grpc\include" , "grpc\src" and "grpc\third_party\protobuf\src\google\protobuf" as include directory.
Interestingly, i'm getting :
error LNK2019: unresolved external symbol "public: __thiscall google::protobuf::internal::LogMessage::LogMessage(enum google::protobuf::LogLevel,char const *,int)" (??0LogMessage#internal#protobuf#google##QAE#W4LogLevel#23#PBDH#Z) referenced in function "int __cdecl google::
error LNK2001: unresolved external symbol "public: virtual bool __thiscall google::protobuf::io::ZeroCopyOutputStream::WriteAliasedRaw(void const *,int)" (?WriteAliasedRaw#ZeroCopyOutputStream#io#protobuf#google##UAE_NPBXH#Z)
error LNK2019: unresolved external symbol "public: bool __thiscall google::protobuf::MessageLite::ParseFromZeroCopyStream(class google::protobuf::io::ZeroCopyInputStream *)" (?ParseFromZeroCopyStream#MessageLite#protobuf#google##QAE_NPAVZeroCopyInputStream#io#23##Z) referenced in function "class grpc::Status __cdecl grpc::GenericDeserialize<class grpc::ProtoBufferReader,class facialpluginpoc::NoParams>(class grpc::ByteBuffer *,class google::protobuf::MessageLite *)" (??$GenericDeserialize#VProtoBufferReader#grpc##VNoParams#facialpluginpoc###grpc##YA?AVStatus#0#PAVByteBuffer#0#PAVMessageLite#protobuf#google###Z)
error LNK2001: unresolved external symbol "class grpc::CoreCodegenInterface * grpc::g_core_codegen_interface" (?g_core_codegen_interface#grpc##3PAVCoreCodegenInterface#1#A)
error LNK2001: unresolved external symbol "class grpc::GrpcLibraryInterface * grpc::g_glip" (?g_glip#grpc##3PAVGrpcLibraryInterface#1#A)
error LNK2019: unresolved external symbol "void __cdecl google::protobuf::internal::VerifyVersion(int,int,char const *)" (?VerifyVersion#internal#protobuf#google##YAXHHPBD#Z) referenced in function "void __cdecl InitDefaultsscc_info_NoParams_facialpluginpoc_2eproto(void)" (?InitDefaultsscc_info_NoParams_facialpluginpoc_2eproto##YAXXZ)
1>facialpluginpoc.pb.obj : error LNK2019: unresolved external symbol "void __cdecl google::protobuf::internal::OnShutdownRun(void (__cdecl*)(void const *),void const *)" (?OnShutdownRun#internal#protobuf#google##YAXP6AXPBX#Z0#Z) referenced in function "void __cdecl google::protobuf::internal::OnShutdownDestroyMessage(void const *)" (?OnShutdownDestroyMessage#internal#protobuf#google##YAXPBX#Z)
1>facialpluginpoc.pb.obj : error LNK2019: unresolved external symbol "private: __int64 __thiscall google::protobuf::io::CodedInputStream::ReadVarint32Fallback(unsigned int)" (?ReadVarint32Fallback#CodedInputStream#io#protobuf#google##AAE_JI#Z) referenced in function "public: bool __thiscall google::protobuf::io::CodedInputStream::ReadVarint32(unsigned int *)" (?ReadVarint32#CodedInputStream#io#protobuf#google##QAE_NPAI#Z)
1>facialpluginpoc.pb.obj : error LNK2019: unresolved external symbol "private: unsigned int __thiscall google::protobuf::io::CodedInputStream::ReadTagFallback(unsigned int)" (?ReadTagFallback#CodedInputStream#io#protobuf#google##AAEII#Z) referenced in function "public: struct std::pair<unsigned int,bool> __thiscall google::protobuf::io::CodedInputStream::ReadTagWithCutoffNoLastTag(unsigned int)" (?ReadTagWithCutoffNoLastTag#CodedInputStream#io#protobuf#google##QAE?AU?$pair#I_N#std##I#Z)
1>facialpluginpoc.pb.obj : error LNK2019: unresolved external symbol "public: static unsigned char * __cdecl google::protobuf::io::CodedOutputStream::WriteStringWithSizeToArray(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,unsigned char *)" (?WriteStringWithSizeToArray#CodedOutputStream#io#protobuf#google##SAPAEABV?$basic_string#DU?$char_traits#D#std##V?$allocator#D#2##std##PAE#Z) referenced in function "public: static unsigned char * __cdecl google::protobuf::internal::WireFormatLite::WriteBytesToArray(int,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,unsigned char *)" (?WriteBytesToArray#WireFormatLite#internal#protobuf#google##SAPAEHABV?$basic_string#DU?$char_traits#D#std##V?$allocator#D#2##std##PAE#Z)
1>facialpluginpoc.pb.obj : error LNK2019: unresolved external symbol "public: void * __thiscall google::protobuf::internal::ArenaImpl::AllocateAligned(unsigned int)" (?AllocateAligned#ArenaImpl#internal#protobuf#google##QAEPAXI#Z) referenced in function "private: void * __thiscall google::protobuf::Arena::AllocateInternal<struct google::protobuf::internal::InternalMetadataWithArenaBase<class google::protobuf::UnknownFieldSet,class google::protobuf::internal::InternalMetadataWithArena>::Container>(bool)" (??$AllocateInternal#UContainer#?$InternalMetadataWithArenaBase#VUnknownFieldSet#protobuf#google##VInternalMetadataWithArena#internal#23##internal#protobuf#google###Arena#protobuf#google##AAEPAX_N#Z)
error LNK2019: unresolved external symbol "public: static bool __cdecl google::protobuf::internal::WireFormatLite::ReadBytes(class google::protobuf::io::CodedInputStream *,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > *)" (?ReadBytes#WireFormatLite#internal#protobuf#google##SA_NPAVCodedInputStream#io#34#PAV?$basic_string#DU?$char_traits#D#std##V?$allocator#D#2##std###Z) referenced in function "public: virtual bool __thiscall facialpluginpoc::Result::MergePartialFromCodedStream(class google::protobuf::io::CodedInputStream *)" (?MergePartialFromCodedStream#Result#facialpluginpoc##UAE_NPAVCodedInputStream#io#protobuf#google###Z)
I have included all the required header files as project dependency, but still facing this issue.
Is this GRPC library/build/environment issue ? How to resolve this ?
C++ has two stages compiling and linking. From the errors in the post, looks like your includes are good which is not giving any compiler error but all are linker errors. During linking phase, it may be missing "google::protobuf::io" library or lib files.
I'm running across problems when trying to move away from gl3w in my SDL2 project. The reason I'm considering this is simply because I noticed my version of gl3w doesn't include "glAlphaFunc" but SDL_opengl_glext.h does.
It seems I need to define the following:
#define GL_GLEXT_PROTOTYPES
#define GLX_GLEXT_PROTOTYPES
So after I noticed SDL_opengl_glext.h exists I figured maybe I could simply include SDL_opengl.h and SDL_opengl_glext.h (as I do on iOS: SDL_opengl.h and SDL_opengles.h), but now I'm getting issues with undefined externals.
The lib files I'm currently referencing:
opengl32.lib;glu32.lib;SDL2.lib;SDL2main.lib;SDL2test.lib;SDL2_image.lib;SDL2_ttf.lib;SDL2_mixer.lib;libboost_filesystem-vc140-mt-1_58.lib;libboost_system-vc140-mt-1_58.lib;libpq.lib;ssleay32.lib;libeay32.lib;%(AdditionalDependencies)
My question is: With SDL2 can I link any other lib files to fix this issue, how do I correctly use SDL_opengl_glext.h? I don't see any clear documentation on this issue in particular.
Error Spew:
1>emitter.obj : error LNK2019: unresolved external symbol __imp_glBindBuffer referenced in function "protected: virtual void __cdecl MV::Scene::Emitter::defaultDrawImplementation(void)" (?defaultDrawImplementation#Emitter#Scene#MV##MEAAXXZ)
1>drawable.obj : error LNK2001: unresolved external symbol __imp_glBindBuffer
1>spineMV.obj : error LNK2001: unresolved external symbol __imp_glBindBuffer
1>emitter.obj : error LNK2019: unresolved external symbol __imp_glGenBuffers referenced in function "protected: virtual void __cdecl MV::Scene::Emitter::defaultDrawImplementation(void)" (?defaultDrawImplementation#Emitter#Scene#MV##MEAAXXZ)
1>drawable.obj : error LNK2001: unresolved external symbol __imp_glGenBuffers
1>spineMV.obj : error LNK2001: unresolved external symbol __imp_glGenBuffers
1>emitter.obj : error LNK2019: unresolved external symbol __imp_glBufferData referenced in function "protected: virtual void __cdecl MV::Scene::Emitter::defaultDrawImplementation(void)" (?defaultDrawImplementation#Emitter#Scene#MV##MEAAXXZ)
1>drawable.obj : error LNK2001: unresolved external symbol __imp_glBufferData
1>spineMV.obj : error LNK2001: unresolved external symbol __imp_glBufferData
1>emitter.obj : error LNK2019: unresolved external symbol __imp_glDisableVertexAttribArray referenced in function "protected: virtual void __cdecl MV::Scene::Emitter::defaultDrawImplementation(void)" (?defaultDrawImplementation#Emitter#Scene#MV##MEAAXXZ)
1>drawable.obj : error LNK2001: unresolved external symbol __imp_glDisableVertexAttribArray
1>spineMV.obj : error LNK2001: unresolved external symbol __imp_glDisableVertexAttribArray
1>emitter.obj : error LNK2019: unresolved external symbol __imp_glEnableVertexAttribArray referenced in function "protected: virtual void __cdecl MV::Scene::Emitter::defaultDrawImplementation(void)" (?defaultDrawImplementation#Emitter#Scene#MV##MEAAXXZ)
1>drawable.obj : error LNK2001: unresolved external symbol __imp_glEnableVertexAttribArray
1>spineMV.obj : error LNK2001: unresolved external symbol __imp_glEnableVertexAttribArray
1>emitter.obj : error LNK2019: unresolved external symbol __imp_glUseProgram referenced in function "protected: virtual void __cdecl MV::Scene::Emitter::defaultDrawImplementation(void)" (?defaultDrawImplementation#Emitter#Scene#MV##MEAAXXZ)
1>drawable.obj : error LNK2001: unresolved external symbol __imp_glUseProgram
1>spineMV.obj : error LNK2001: unresolved external symbol __imp_glUseProgram
1>emitter.obj : error LNK2019: unresolved external symbol __imp_glVertexAttribPointer referenced in function "protected: virtual void __cdecl MV::Scene::Emitter::defaultDrawImplementation(void)" (?defaultDrawImplementation#Emitter#Scene#MV##MEAAXXZ)
1>drawable.obj : error LNK2001: unresolved external symbol __imp_glVertexAttribPointer
1>spineMV.obj : error LNK2001: unresolved external symbol __imp_glVertexAttribPointer
1>render.obj : error LNK2019: unresolved external symbol __imp_glActiveTexture referenced in function "public: void __cdecl MV::Shader::set(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::shared_ptr<class MV::TextureDefinition> const &,unsigned int)" (?set#Shader#MV##QEAAXV?$basic_string#DU?$char_traits#D#std##V?$allocator#D#2##std##AEBV?$shared_ptr#VTextureDefinition#MV###4#I#Z)
1>render.obj : error LNK2019: unresolved external symbol __imp_glBlendFuncSeparate referenced in function "public: void __cdecl MV::Draw2D::defaultBlendFunction(void)" (?defaultBlendFunction#Draw2D#MV##QEAAXXZ)
1>render.obj : error LNK2019: unresolved external symbol __imp_glBlendEquationSeparate referenced in function "public: void __cdecl MV::glExtensionBlendMode::setBlendEquation(unsigned int,unsigned int)" (?setBlendEquation#glExtensionBlendMode#MV##QEAAXII#Z)
1>render.obj : error LNK2019: unresolved external symbol __imp_glAttachShader referenced in function "public: class MV::Shader * __cdecl MV::Draw2D::loadShaderCode(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?loadShaderCode#Draw2D#MV##QEAAPEAVShader#2#AEBV?$basic_string#DU?$char_traits#D#std##V?$allocator#D#2##std##00#Z)
1>render.obj : error LNK2019: unresolved external symbol __imp_glCompileShader referenced in function "private: void __cdecl MV::Draw2D::loadPartOfShader(unsigned int,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?loadPartOfShader#Draw2D#MV##AEAAXIAEBV?$basic_string#DU?$char_traits#D#std##V?$allocator#D#2##std###Z)
1>render.obj : error LNK2019: unresolved external symbol __imp_glCreateProgram referenced in function "public: class MV::Shader * __cdecl MV::Draw2D::loadShaderCode(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?loadShaderCode#Draw2D#MV##QEAAPEAVShader#2#AEBV?$basic_string#DU?$char_traits#D#std##V?$allocator#D#2##std##00#Z)
1>render.obj : error LNK2019: unresolved external symbol __imp_glCreateShader referenced in function "public: class MV::Shader * __cdecl MV::Draw2D::loadShaderCode(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?loadShaderCode#Draw2D#MV##QEAAPEAVShader#2#AEBV?$basic_string#DU?$char_traits#D#std##V?$allocator#D#2##std##00#Z)
1>render.obj : error LNK2019: unresolved external symbol __imp_glGetActiveUniform referenced in function "public: __cdecl MV::Shader::Shader(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,unsigned int,bool)" (??0Shader#MV##QEAA#AEBV?$basic_string#DU?$char_traits#D#std##V?$allocator#D#2##std##I_N#Z)
1>render.obj : error LNK2019: unresolved external symbol __imp_glGetProgramiv referenced in function "public: __cdecl MV::Shader::Shader(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,unsigned int,bool)" (??0Shader#MV##QEAA#AEBV?$basic_string#DU?$char_traits#D#std##V?$allocator#D#2##std##I_N#Z)
1>render.obj : error LNK2019: unresolved external symbol __imp_glGetShaderiv referenced in function "private: void __cdecl MV::Draw2D::validateShaderStatus(unsigned int,bool)" (?validateShaderStatus#Draw2D#MV##AEAAXI_N#Z)
1>render.obj : error LNK2019: unresolved external symbol __imp_glGetShaderInfoLog referenced in function "private: void __cdecl MV::Draw2D::validateShaderStatus(unsigned int,bool)" (?validateShaderStatus#Draw2D#MV##AEAAXI_N#Z)
1>render.obj : error LNK2019: unresolved external symbol __imp_glGetUniformLocation referenced in function "public: __cdecl MV::Shader::Shader(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,unsigned int,bool)" (??0Shader#MV##QEAA#AEBV?$basic_string#DU?$char_traits#D#std##V?$allocator#D#2##std##I_N#Z)
1>render.obj : error LNK2019: unresolved external symbol __imp_glIsProgram referenced in function "public: __cdecl MV::Shader::Shader(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,unsigned int,bool)" (??0Shader#MV##QEAA#AEBV?$basic_string#DU?$char_traits#D#std##V?$allocator#D#2##std##I_N#Z)
1>render.obj : error LNK2019: unresolved external symbol __imp_glLinkProgram referenced in function "public: class MV::Shader * __cdecl MV::Draw2D::loadShaderCode(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?loadShaderCode#Draw2D#MV##QEAAPEAVShader#2#AEBV?$basic_string#DU?$char_traits#D#std##V?$allocator#D#2##std##00#Z)
1>render.obj : error LNK2019: unresolved external symbol __imp_glShaderSource referenced in function "private: void __cdecl MV::Draw2D::loadPartOfShader(unsigned int,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?loadPartOfShader#Draw2D#MV##AEAAXIAEBV?$basic_string#DU?$char_traits#D#std##V?$allocator#D#2##std###Z)
1>render.obj : error LNK2019: unresolved external symbol __imp_glUniform1i referenced in function "public: void __cdecl MV::Shader::set(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::shared_ptr<class MV::TextureDefinition> const &,unsigned int)" (?set#Shader#MV##QEAAXV?$basic_string#DU?$char_traits#D#std##V?$allocator#D#2##std##AEBV?$shared_ptr#VTextureDefinition#MV###4#I#Z)
1>render.obj : error LNK2019: unresolved external symbol __imp_glUniform1fv referenced in function "public: void __cdecl MV::Shader::set(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,float)" (?set#Shader#MV##QEAAXV?$basic_string#DU?$char_traits#D#std##V?$allocator#D#2##std##M#Z)
1>render.obj : error LNK2019: unresolved external symbol __imp_glUniformMatrix4fv referenced in function "public: void __cdecl MV::Shader::set(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class MV::TransformMatrix const &)" (?set#Shader#MV##QEAAXV?$basic_string#DU?$char_traits#D#std##V?$allocator#D#2##std##AEBVTransformMatrix#2##Z)
1>render.obj : error LNK2019: unresolved external symbol __imp_glBindRenderbuffer referenced in function "public: void __cdecl MV::glExtensionFramebufferObject::startUsingFramebuffer(class std::weak_ptr<class MV::Framebuffer>,bool)" (?startUsingFramebuffer#glExtensionFramebufferObject#MV##QEAAXV?$weak_ptr#VFramebuffer#MV###std##_N#Z)
1>render.obj : error LNK2019: unresolved external symbol __imp_glDeleteRenderbuffers referenced in function "public: __cdecl MV::Framebuffer::~Framebuffer(void)" (??1Framebuffer#MV##QEAA#XZ)
1>render.obj : error LNK2019: unresolved external symbol __imp_glGenRenderbuffers referenced in function "public: class std::shared_ptr<class MV::Framebuffer> __cdecl MV::glExtensionFramebufferObject::makeFramebuffer(class MV::Point<int> const &,class MV::Size<int> const &,unsigned int,class MV::Color const &)" (?makeFramebuffer#glExtensionFramebufferObject#MV##QEAA?AV?$shared_ptr#VFramebuffer#MV###std##AEBV?$Point#H#2#AEBV?$Size#H#2#IAEBVColor#2##Z)
1>render.obj : error LNK2019: unresolved external symbol __imp_glRenderbufferStorage referenced in function "public: void __cdecl MV::glExtensionFramebufferObject::startUsingFramebuffer(class std::weak_ptr<class MV::Framebuffer>,bool)" (?startUsingFramebuffer#glExtensionFramebufferObject#MV##QEAAXV?$weak_ptr#VFramebuffer#MV###std##_N#Z)
1>render.obj : error LNK2019: unresolved external symbol __imp_glBindFramebuffer referenced in function "public: void __cdecl MV::glExtensionFramebufferObject::startUsingFramebuffer(class std::weak_ptr<class MV::Framebuffer>,bool)" (?startUsingFramebuffer#glExtensionFramebufferObject#MV##QEAAXV?$weak_ptr#VFramebuffer#MV###std##_N#Z)
1>render.obj : error LNK2019: unresolved external symbol __imp_glDeleteFramebuffers referenced in function "public: __cdecl MV::Framebuffer::~Framebuffer(void)" (??1Framebuffer#MV##QEAA#XZ)
1>render.obj : error LNK2019: unresolved external symbol __imp_glGenFramebuffers referenced in function "public: class std::shared_ptr<class MV::Framebuffer> __cdecl MV::glExtensionFramebufferObject::makeFramebuffer(class MV::Point<int> const &,class MV::Size<int> const &,unsigned int,class MV::Color const &)" (?makeFramebuffer#glExtensionFramebufferObject#MV##QEAA?AV?$shared_ptr#VFramebuffer#MV###std##AEBV?$Point#H#2#AEBV?$Size#H#2#IAEBVColor#2##Z)
1>render.obj : error LNK2019: unresolved external symbol __imp_glFramebufferTexture2D referenced in function "public: void __cdecl MV::glExtensionFramebufferObject::startUsingFramebuffer(class std::weak_ptr<class MV::Framebuffer>,bool)" (?startUsingFramebuffer#glExtensionFramebufferObject#MV##QEAAXV?$weak_ptr#VFramebuffer#MV###std##_N#Z)
1>C:\git\MoonDog\x64\Release\M2tMLibrary.exe : fatal error LNK1120: 33 unresolved externals
This is not how you use OpenGL extensions. You need to load extension functions at run time with SDL_GL_GetProcAddress or use any of existing opengl loaders.
If you only need this one function you can define its prototype yourself or load it at runtime. Note that newer GL vesions deprecated AlphaFunc (which is the reason why gl3w don't have it - as it targets GL 3 or higher), so you cannot use it if you target these versions.
What is an undefined reference / unresolved external symbol error and how do I fix it?
You need to link to SDL2main.lib
Then to SDL2.lib
Then any other SDL libraries.
Make sure you're linking to a binary that's fine by your compiler, and of the right architecture.
If all else fails, compile SDL yourself.
I am getting following linker errors while building my cocos2d-x win32 project on calls to functions in unzip class.
1>ZipArchive.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) void * __cdecl cocos2d::unzOpen(char const *)" (__imp_?unzOpen#cocos2d##YAPAXPBD#Z)
1>ZipArchive.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) int __cdecl cocos2d::unzGetGlobalInfo(void *,struct cocos2d::unz_global_info_s *)" (__imp_?unzGetGlobalInfo#cocos2d##YAHPAXPAUunz_global_info_s#1##Z) referenced in function "public: bool __thiscall myproject::ZipArchive::UnzipOpenFile(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >)" (?UnzipOpenFile#ZipArchive#myproject##QAE_NV?$basic_string#DU?$char_traits#D#std##V?$allocator#D#2##std###Z)
1>ZipArchive.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) int __cdecl cocos2d::unzReadCurrentFile(void *,void *,unsigned int)" (__imp_?unzReadCurrentFile#cocos2d##YAHPAX0I#Z) referenced in function "public: bool __thiscall myproject::ZipArchive::UnzipFileTo(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,bool)" (?UnzipFileTo#ZipArchive#myproject##QAE_NV?$basic_string#DU?$char_traits#D#std##V?$allocator#D#2##std##_N#Z)
1>ZipArchive.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) int __cdecl cocos2d::unzGoToNextFile(void *)" (__imp_?unzGoToNextFile#cocos2d##YAHPAX#Z) referenced in function "public: bool __thiscall myproject::ZipArchive::UnzipFileTo(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,bool)" (?UnzipFileTo#ZipArchive#myproject##QAE_NV?$basic_string#DU?$char_traits#D#std##V?$allocator#D#2##std##_N#Z)
1>ZipArchive.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) int __cdecl cocos2d::unzGetCurrentFileInfo(void *,struct cocos2d::unz_file_info_s *,char *,unsigned long,void *,unsigned long,char *,unsigned long)" (__imp_?unzGetCurrentFileInfo#cocos2d##YAHPAXPAUunz_file_info_s#1#PADK0K2K#Z) referenced in function "public: bool __thiscall myproject::ZipArchive::UnzipFileTo(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,bool)" (?UnzipFileTo#ZipArchive#myproject##QAE_NV?$basic_string#DU?$char_traits#D#std##V?$allocator#D#2##std##_N#Z)
1>ZipArchive.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) int __cdecl cocos2d::unzOpenCurrentFilePassword(void *,char const *)" (__imp_?unzOpenCurrentFilePassword#cocos2d##YAHPAXPBD#Z) referenced in function "public: bool __thiscall myproject::ZipArchive::UnzipFileTo(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,bool)" (?UnzipFileTo#ZipArchive#myproject##QAE_NV?$basic_string#DU?$char_traits#D#std##V?$allocator#D#2##std##_N#Z)
1>ZipArchive.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) int __cdecl cocos2d::unzOpenCurrentFile(void *)" (__imp_?unzOpenCurrentFile#cocos2d##YAHPAX#Z) referenced in function "public: bool __thiscall myproject::ZipArchive::UnzipFileTo(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,bool)" (?UnzipFileTo#ZipArchive#myproject##QAE_NV?$basic_string#DU?$char_traits#D#std##V?$allocator#D#2##std##_N#Z)
1>ZipArchive.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) int __cdecl cocos2d::unzGoToFirstFile(void *)" (__imp_?unzGoToFirstFile#cocos2d##YAHPAX#Z) referenced in function "public: bool __thiscall myproject::ZipArchive::UnzipFileTo(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,bool)" (?UnzipFileTo#ZipArchive#myproject##QAE_NV?$basic_string#DU?$char_traits#D#std##V?$allocator#D#2##std##_N#Z)
1>ZipArchive.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) int __cdecl cocos2d::unzClose(void *)" (__imp_?unzClose#cocos2d##YAHPAX#Z) referenced in function "public: bool __thiscall myproject::ZipArchive::UnzipCloseFile(void)" (?UnzipCloseFile#ZipArchive#myproject##QAE_NXZ)
I added libzlib.lib to my Additional Dependencies but it still gives me the errors. I am using VS2010
I m using taglib for one of my projects . The Debug/Release library is build using MSVC 10. On compiling the code with the library in taglib/taglib/Release some linker error are thrown .
id3.cpp.1.o : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class TagLib::AudioPropertie
s * __cdecl TagLib::FileRef::audioProperties(void)const " (__imp_?audioProperties#FileRef#TagLib##QEBAPEAVAudioProp
erties#2#XZ) referenced in function "struct MetaData __cdecl ID3::getMetaDataOfFile(class std::basic_string<char,st
ruct std::char_traits<char>,class std::allocator<char> >)" (?getMetaDataOfFile#ID3##YA?AUMetaData##V?$basic_string#
DU?$char_traits#D#std##V?$allocator#D#2##std###Z)
id3.cpp.1.o : error LNK2019: unresolved external symbol "__declspec(dllimport) public: virtual __cdecl TagLib::Stri
ng::~String(void)" (__imp_??1String#TagLib##UEAA#XZ) referenced in function "struct MetaData __cdecl ID3::getMetaDa
taOfFile(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >)" (?getMetaDataOfF
ile#ID3##YA?AUMetaData##V?$basic_string#DU?$char_traits#D#std##V?$allocator#D#2##std###Z)
id3.cpp.1.o : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class std::basic_string<char
,struct std::char_traits<char>,class std::allocator<char> > __cdecl TagLib::String::to8Bit(bool)const " (__imp_?to8
Bit#String#TagLib##QEBA?AV?$basic_string#DU?$char_traits#D#std##V?$allocator#D#2##std##_N#Z) referenced in function
"struct MetaData __cdecl ID3::getMetaDataOfFile(class std::basic_string<char,struct std::char_traits<char>,class s
td::allocator<char> >)" (?getMetaDataOfFile#ID3##YA?AUMetaData##V?$basic_string#DU?$char_traits#D#std##V?$allocator
#D#2##std###Z)
id3.cpp.1.o : error LNK2019: unresolved external symbol "__declspec(dllimport) public: virtual __cdecl TagLib::File
Ref::~FileRef(void)" (__imp_??1FileRef#TagLib##UEAA#XZ) referenced in function "struct MetaData __cdecl ID3::getMet
aDataOfFile(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >)" (?getMetaData
OfFile#ID3##YA?AUMetaData##V?$basic_string#DU?$char_traits#D#std##V?$allocator#D#2##std###Z)
id3.cpp.1.o : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class TagLib::Tag * __cdecl
TagLib::FileRef::tag(void)const " (__imp_?tag#FileRef#TagLib##QEBAPEAVTag#2#XZ) referenced in function "struct Meta
Data __cdecl ID3::getMetaDataOfFile(class std::basic_string<char,struct std::char_traits<char>,class std::allocator
<char> >)" (?getMetaDataOfFile#ID3##YA?AUMetaData##V?$basic_string#DU?$char_traits#D#std##V?$allocator#D#2##std###Z
)
id3.cpp.1.o : error LNK2019: unresolved external symbol "__declspec(dllimport) public: bool __cdecl TagLib::FileRef
::isNull(void)const " (__imp_?isNull#FileRef#TagLib##QEBA_NXZ) referenced in function "struct MetaData __cdecl ID3:
:getMetaDataOfFile(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >)" (?getM
etaDataOfFile#ID3##YA?AUMetaData##V?$basic_string#DU?$char_traits#D#std##V?$allocator#D#2##std###Z)
id3.cpp.1.o : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __cdecl TagLib::FileRef::Fil
eRef(class TagLib::FileName,bool,enum TagLib::AudioProperties::ReadStyle)" (__imp_??0FileRef#TagLib##QEAA#VFileName
#1#_NW4ReadStyle#AudioProperties#1##Z) referenced in function "struct MetaData __cdecl ID3::getMetaDataOfFile(class
std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >)" (?getMetaDataOfFile#ID3##YA?AU
MetaData##V?$basic_string#DU?$char_traits#D#std##V?$allocator#D#2##std###Z)
id3.cpp.1.o : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __cdecl TagLib::FileName::Fi
leName(char const *)" (__imp_??0FileName#TagLib##QEAA#PEBD#Z) referenced in function "struct MetaData __cdecl ID3::
getMetaDataOfFile(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >)" (?getMe
taDataOfFile#ID3##YA?AUMetaData##V?$basic_string#DU?$char_traits#D#std##V?$allocator#D#2##std###Z)
I m only including tag.lib from taglib/taglib/Release folder . Is there some other library I m missing out?