taglib link errors - c++

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?

Related

Build mapnik viewer on msvc

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?

Fixing unresolved external symbols using Boost.Python

I am trying to build a library and getting several "unresolved external symbol" errors. I am trying to fix one of those errors which should give me an idea of how to proceed. That error is: unresolved external symbol IsProcessorFeaturePresent. As per my understanding since this is not part of the code I am trying to build this must be present in a "lib" file. According to this that lib file should be kernel32.lib. Now there are several kernel32.lib files present under "Windows Kits". Which I suppose should be included by default when compiling in Visual Studio Developer Command Prompt as it should be a part of the environment. I still added a path "C:\Program\ Files\ (x86)\Windows\ Kits\8.1\Lib\winv6.3\um\x64" to <library-path> under #requirements in JamFile of the library I have also added "<include>C:\Program\ Files\ (x86)\Windows\ Kits\8.1\Include\um" to it. But there is no change in the error. How do I find out which file does it require to be included?
Note: This question is different from how to resolve unresolved external symbol error, I have already gone through answers to that question and now I am trying to apply it to this particular error.
Edit:I am trying to build the libtorrent library which depends on Boost.Python. I built Boost.Python using --with-python=C:\Python27 in Boost's root directory. After This I have added BOOST_ROOT to the environment variables and also added it to path. After that I am trying to build libtorrent python bindings using bjam variant=release memory-model=64 The complete error logs are here.
Edit 2: Following up on the comments to this question I have added the required libraries to JamFile and the number of errors has been reduced from 187 to 11. The remaining errors are:
create_torrent.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) class boost::python::api::object const & __cdecl boost::python::objects::identity_function(void)" (__imp_?identity_function#objects#python#boost##YAAEBVobject#api#23#XZ) referenced in function "class boost::python::api::object __cdecl boost::python::objects::detail::demand_iterator_class<struct `anonymous namespace'::FileIter,struct boost::python::return_value_policy<struct boost::python::return_by_value,struct boost::python::default_call_policies> >(char const *,struct `anonymous namespace'::FileIter *,struct boost::python::return_value_policy<struct boost::python::return_by_value,struct boost::python::default_call_policies> const &)" (??$demand_iterator_class#UFileIter#?A0x1efcf82b##U?$return_value_policy#Ureturn_by_value#python#boost##Udefault_call_policies#23##python#boost###detail#objects#python#boost##YA?AVobject#api#23#PEBDPEAUFileIter#?A0x1efcf82b##AEBU?$return_value_policy#Ureturn_by_value#python#boost##Udefault_call_policies#23##23##Z)
torrent_info.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) class boost::python::api::object const & __cdecl boost::python::objects::identity_function(void)" (__imp_?identity_function#objects#python#boost##YAAEBVobject#api#23#XZ)
create_torrent.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) void __cdecl boost::python::objects::stop_iteration_error(void)" (__imp_?stop_iteration_error#objects#python#boost##YAXXZ) referenced in function "struct _object * __cdecl boost::python::detail::invoke<struct boost::python::to_python_value<struct libtorrent::file_entry const &>,struct boost::python::objects::iterator_range<struct boost::python::return_value_policy<struct boost::python::return_by_value,struct boost::python::default_call_policies>,struct `anonymous namespace'::FileIter>::next,struct boost::python::arg_from_python<struct boost::python::objects::iterator_range<struct boost::python::return_value_policy<struct boost::python::return_by_value,struct boost::python::default_call_policies>,struct `anonymous namespace'::FileIter> &> >(struct boost::python::detail::invoke_tag_<0,0>,struct boost::python::to_python_value<struct libtorrent::file_entry const &> const &,struct boost::python::objects::iterator_range<struct boost::python::return_value_policy<struct boost::python::return_by_value,struct boost::python::default_call_policies>,struct `anonymous namespace'::FileIter>::next &,struct boost::python::arg_from_python<struct boost::python::objects::iterator_range<struct boost::python::return_value_policy<struct boost::python::return_by_value,struct boost::python::default_call_policies>,struct `anonymous namespace'::FileIter> &> &)" (??$invoke#U?$to_python_value#AEBUfile_entry#libtorrent###python#boost##Unext#?$iterator_range#U?$return_value_policy#Ureturn_by_value#python#boost##Udefault_call_policies#23##python#boost##UFileIter#?A0x1efcf82b###objects#23#U?$arg_from_python#AEAU?$iterator_range#U?$return_value_policy#Ureturn_by_value#python#boost##Udefault_call_policies#23##python#boost##UFileIter#?A0x1efcf82b###objects#python#boost###23##detail#python#boost##YAPEAU_object##U?$invoke_tag_#$0A#$0A##012#AEBU?$to_python_value#AEBUfile_entry#libtorrent###12#AEAUnext#?$iterator_range#U?$return_value_policy#Ureturn_by_value#python#boost##Udefault_call_policies#23##python#boost##UFileIter#?A0x1efcf82b###objects#12#AEAU?$arg_from_python#AEAU?$iterator_range#U?$return_value_policy#Ureturn_by_value#python#boost##Udefault_call_policies#23##python#boost##UFileIter#?A0x1efcf82b###objects#python#boost###12##Z)
torrent_info.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) void __cdecl boost::python::objects::stop_iteration_error(void)" (__imp_?stop_iteration_error#objects#python#boost##YAXXZ)
session.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __cdecl boost::python::objects::stl_input_iterator_impl::stl_input_iterator_impl(void)" (__imp_??0stl_input_iterator_impl#objects#python#boost##QEAA#XZ) referenced in function "public: __cdecl boost::python::stl_input_iterator<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > >::stl_input_iterator<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > >(void)" (??0?$stl_input_iterator#V?$basic_string#DU?$char_traits#D#std##V?$allocator#D#2##std###python#boost##QEAA#XZ)
torrent_handle.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __cdecl boost::python::objects::stl_input_iterator_impl::stl_input_iterator_impl(void)" (__imp_??0stl_input_iterator_impl#objects#python#boost##QEAA#XZ)
session.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __cdecl boost::python::objects::stl_input_iterator_impl::stl_input_iterator_impl(class boost::python::api::object const &)" (__imp_??0stl_input_iterator_impl#objects#python#boost##QEAA#AEBVobject#api#23##Z) referenced in function "public: __cdecl boost::python::stl_input_iterator<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > >::stl_input_iterator<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > >(class boost::python::api::object const &)" (??0?$stl_input_iterator#V?$basic_string#DU?$char_traits#D#std##V?$allocator#D#2##std###python#boost##QEAA#AEBVobject#api#12##Z)
torrent_handle.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __cdecl boost::python::objects::stl_input_iterator_impl::stl_input_iterator_impl(class boost::python::api::object const &)" (__imp_??0stl_input_iterator_impl#objects#python#boost##QEAA#AEBVobject#api#23##Z)
session.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __cdecl boost::python::objects::stl_input_iterator_impl::increment(void)" (__imp_?increment#stl_input_iterator_impl#objects#python#boost##QEAAXXZ) referenced in function "private: static void __cdecl boost::iterators::iterator_core_access::increment<struct boost::python::stl_input_iterator<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > > >(struct boost::python::stl_input_iterator<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > > &)" (??$increment#U?$stl_input_iterator#V?$basic_string#DU?$char_traits#D#std##V?$allocator#D#2##std###python#boost###iterator_core_access#iterators#boost##CAXAEAU?$stl_input_iterator#V?$basic_string#DU?$char_traits#D#std##V?$allocator#D#2##std###python#2##Z)
torrent_handle.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __cdecl boost::python::objects::stl_input_iterator_impl::increment(void)" (__imp_?increment#stl_input_iterator_impl#objects#python#boost##QEAAXXZ)
session.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: bool __cdecl boost::python::objects::stl_input_iterator_impl::equal(struct boost::python::objects::stl_input_iterator_impl const &)const " (__imp_?equal#stl_input_iterator_impl#objects#python#boost##QEBA_NAEBU1234##Z) referenced in function "bool __cdecl boost::iterators::operator!=<struct boost::python::stl_input_iterator<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > >,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,struct std::input_iterator_tag,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,__int64,struct boost::python::stl_input_iterator<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > >,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,struct std::input_iterator_tag,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,__int64>(class boost::iterators::iterator_facade<struct boost::python::stl_input_iterator<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > >,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,struct std::input_iterator_tag,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,__int64> const &,class boost::iterators::iterator_facade<struct boost::python::stl_input_iterator<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > >,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,struct std::input_iterator_tag,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,__int64> const &)" (??$?9U?$stl_input_iterator#V?$basic_string#DU?$char_traits#D#std##V?$allocator#D#2##std###python#boost##V?$basic_string#DU?$char_traits#D#std##V?$allocator#D#2##std##Uinput_iterator_tag#4#V34#_JU012#V34#U54#V34#_J#iterators#boost##YA_NAEBV?$iterator_facade#U?$stl_input_iterator#V?$basic_string#DU?$char_traits#D#std##V?$allocator#D#2##std###python#boost##V?$basic_string#DU?$char_traits#D#std##V?$allocator#D#2##std##Uinput_iterator_tag#5#V45#_J#01#0#Z)
torrent_handle.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: bool __cdecl boost::python::objects::stl_input_iterator_impl::equal(struct boost::python::objects::stl_input_iterator_impl const &)const " (__imp_?equal#stl_input_iterator_impl#objects#python#boost##QEBA_NAEBU1234##Z)
session.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class boost::python::handle<struct _object> const & __cdecl boost::python::objects::stl_input_iterator_impl::current(void)const " (__imp_?current#stl_input_iterator_impl#objects#python#boost##QEBAAEBV?$handle#U_object###34#XZ) referenced in function "private: static class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl boost::iterators::iterator_core_access::dereference<struct boost::python::stl_input_iterator<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > > >(struct boost::python::stl_input_iterator<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > > const &)" (??$dereference#U?$stl_input_iterator#V?$basic_string#DU?$char_traits#D#std##V?$allocator#D#2##std###python#boost###iterator_core_access#iterators#boost##CA?AV?$basic_string#DU?$char_traits#D#std##V?$allocator#D#2##std##AEBU?$stl_input_iterator#V?$basic_string#DU?$char_traits#D#std##V?$allocator#D#2##std###python#2##Z)
torrent_handle.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class boost::python::handle<struct _object> const & __cdecl boost::python::objects::stl_input_iterator_impl::current(void)const " (__imp_?current#stl_input_iterator_impl#objects#python#boost##QEBAAEBV?$handle#U_object###34#XZ)
session.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __cdecl boost::python::objects::stl_input_iterator_impl::~stl_input_iterator_impl(void)" (__imp_??1stl_input_iterator_impl#objects#python#boost##QEAA#XZ) referenced in function "public: __cdecl boost::python::stl_input_iterator<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > >::~stl_input_iterator<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > >(void)" (??1?$stl_input_iterator#V?$basic_string#DU?$char_traits#D#std##V?$allocator#D#2##std###python#boost##QEAA#XZ)
torrent_handle.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __cdecl boost::python::objects::stl_input_iterator_impl::~stl_input_iterator_impl(void)" (__imp_??1stl_input_iterator_impl#objects#python#boost##QEAA#XZ)
torrent_handle.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: struct boost::python::detail::dict_base & __cdecl boost::python::detail::dict_base::operator=(struct boost::python::detail::dict_base &&)" (__imp_??4dict_base#detail#python#boost##QEAAAEAU0123#$$QEAU0123##Z) referenced in function "public: class boost::python::dict & __cdecl boost::python::dict::operator=(class boost::python::dict &&)" (??4dict#python#boost##QEAAAEAV012#$$QEAV012##Z)
torrent_handle.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __cdecl boost::python::objects::stl_input_iterator_impl::stl_input_iterator_impl(struct boost::python::objects::stl_input_iterator_impl const &)" (__imp_??0stl_input_iterator_impl#objects#python#boost##QEAA#AEBU0123##Z) referenced in function "public: __cdecl std::vector<int,class std::allocator<int> >::vector<int,class std::allocator<int> ><struct boost::python::stl_input_iterator<int const >,void>(struct boost::python::stl_input_iterator<int const >,struct boost::python::stl_input_iterator<int const >,class std::allocator<int> const &)" (??$?0U?$stl_input_iterator#$$CBH#python#boost##X#?$vector#HV?$allocator#H#std###std##QEAA#U?$stl_input_iterator#$$CBH#python#boost##0AEBV?$allocator#H#1##Z)
torrent_handle.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __cdecl boost::python::objects::stl_input_iterator_impl::stl_input_iterator_impl(struct boost::python::objects::stl_input_iterator_impl &&)" (__imp_??0stl_input_iterator_impl#objects#python#boost##QEAA#$$QEAU0123##Z) referenced in function "public: __cdecl std::vector<int,class std::allocator<int> >::vector<int,class std::allocator<int> ><struct boost::python::stl_input_iterator<int const >,void>(struct boost::python::stl_input_iterator<int const >,struct boost::python::stl_input_iterator<int const >,class std::allocator<int> const &)" (??$?0U?$stl_input_iterator#$$CBH#python#boost##X#?$vector#HV?$allocator#H#std###std##QEAA#U?$stl_input_iterator#$$CBH#python#boost##0AEBV?$allocator#H#1##Z)
bin\msvc-14.1\release\address-model-64\libtorrent.dll : fatal error LNK1120: 11 unresolved externals
On inspection of libboost_python-vc141-mt-1_65_1.lib at C:\boost_1_65_1\stage\lib (using dumpbin /EXPORTS) I checked that all the symbols are present in the output of dumpbin, for example searching for identity_function I get this line:
06B 00000000 SECT28 notype () External | ?identity_function#objects#python#boost##YAAEBVobject#api#23#XZ (class boost::python::api::object const & __cdecl boost::python::objects::identity_function(void))
I am including this lib file in my JamFile. What else am I missing? Is there some option I need to pass while building Boost.Python currently I am building it using bjam --with-python variant=release address-model=64
Following RbMm's suggestion I included the libaries in the JamFile and it removed a lot of unresolved external symbol errors. The rest of the errors were fixed by building Boost.Python as shared and including the lib file. Now I have a completely different unrelated error.

SDL2 and SDL_opengl_glext.h undefined external

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.

Unresolved external symbol error when calling functions in unzip class in cocos2dx

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

C++/CLI DLL project stops linking after conversion from VS2008 to VS2010

I converted a perfectly working Managed C++ DLL project that uses Unmanaged C++ LIBs from VS2008 to VS2010. Beforehand I separately rebuilt the LIBs with VS2010 (they are part of another project that I have no authority over). However, after conversion my managed DLL project stopped linking giving me few dosen of LNK2001 error messages (see the sample below). All errors about "std" entities defined within "string" and "iosfwd" headers. Which compiler/linker settings am I missing?
Thanks in advance for your help.
Auxiliary.lib(Error.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) bool __cdecl std::operator!=<char,struct std::char_traits<char>,class td::allocator<char> >(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,char const *)" (__imp_??$?9DU?$char_traits#D#std##V?$allocator#D#1##std##YA_NAEBV?$basic_string#DU?$char_traits#D#std##V?$allocator#D#2##0#PEBD#Z)
Auxiliary.lib(Error.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) class std::basic_ostream<char,struct std::char_traits<char> > & __cdecl std::operator<<<char,struct std::char_traits<char>,class std::allocator<char> >(class std::basic_ostream<char,struct std::char_traits<char> > &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (__imp_??$?6DU?$char_traits#D#std##V?$allocator#D#1##std##YAAEAV?$basic_ostream#DU?$char_traits#D#std###0#AEAV10#AEBV?$basic_string#DU?$char_traits#D#std##V?$allocator#D#2##0##Z)
Auxiliary.lib(Error.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static unsigned __int64 const std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::npos" (__imp_?npos#?$basic_string#DU?$char_traits#D#std##V?$allocator#D#2##std##2_KB)
Auxiliary.lib(Error.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __cdecl std::basic_streambuf<char,struct std::char_traits<char> >::_Lock(void)" (__imp_?_Lock#?$basic_streambuf#DU?$char_traits#D#std###std##QEAAXXZ)
Auxiliary.lib(Error.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __cdecl std::basic_streambuf<char,struct std::char_traits<char> >::_Unlock(void)" (__imp_?_Unlock#?$basic_streambuf#DU?$char_traits#D#std###std##QEAAXXZ)
Auxiliary.lib(Error.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl std::basic_ostringstream<char,struct std::char_traits<char>,class std::allocator<char> >::str(void)const " (__imp_?str#?$basic_ostringstream#DU?$char_traits#D#std##V?$allocator#D#2##std##QEBA?AV?$basic_string#DU?$char_traits#D#std##V?$allocator#D#2##2#XZ)
Auxiliary.lib(Error.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __cdecl std::basic_ostringstream<char,struct std::char_traits<char>,class std::allocator<char> >::basic_ostringstream<char,struct std::char_traits<char>,class std::allocator<char> >(int)" (__imp_??0?$basic_ostringstream#DU?$char_traits#D#std##V?$allocator#D#2##std##QEAA#H#Z)
Auxiliary.lib(Error.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::substr(unsigned __int64,unsigned __int64)const " (__imp_?substr#?$basic_string#DU?$char_traits#D#std##V?$allocator#D#2##std##QEBA?AV12#_K0#Z)
etc...
Finally found it (thanks Hans Passant for the tip!) I had a few files that were still built by VS2008 and that caused the issue. Thanks to everyone who bothered to add a comment.