I can compile link and run my project using my own lib using wxwidgets dll libs. Using static libs I have got 1 error and three warnings :
Code: Select all
2>main.obj : warning LNK4217: locally defined symbol ??0wxString@@QEAA@PEBD@Z (public: __cdecl wxString::wxString(char const *)) imported in function "unsigned char __cdecl wxNano::GetNumber<unsigned char>(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> >,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >)" (??$GetNumber@E@wxNano@@YAEV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@00@Z)
2>main.obj : warning LNK4217: locally defined symbol ??1wxString@@QEAA@XZ (public: __cdecl wxString::~wxString(void)) imported in function "unsigned char __cdecl wxNano::GetNumber<unsigned char>(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> >,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >)" (??$GetNumber@E@wxNano@@YAEV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@00@Z)
2>main.obj : warning LNK4049: locally defined symbol ?wxDefaultPosition@@3VwxPoint@@B (class wxPoint const wxDefaultPosition) imported
2>main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) long __cdecl wxGetNumberFromUser(class wxString const &,class wxString const &,class wxString const &,long,long,long,class wxWindow *,class wxPoint const &)" (__imp_?wxGetNumberFromUser@@YAJAEBVwxString@@00JJJPEAVwxWindow@@AEBVwxPoint@@@Z) referenced in function "unsigned char __cdecl wxNano::GetNumber<unsigned char>(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> >,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >)" (??$GetNumber@E@wxNano@@YAEV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@00@Z)
2>G:\Lib\build\wxnanosamplelib\Debug\TDwx.exe : fatal error LNK1120: 1 unresolved externals
2>Done building project "TDwx.vcxproj" -- FAILED.
What's wrong in my configuration ?
windows 10 VS 2017 wxwidgets github master
I use this flags