error LNK2001: unresolved external symbol

Nov 25, 2013 at 1:19 PM
Error 9 error LNK2001: unresolved external symbol "__declspec(dllimport) class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl utility::conversions::from_base64_str(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (_imp?from_base64_str@conversions@utility@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@ABV34@@Z)

Please rebuild library cpprest110_xp_1_3.lib and cpprest110_xp_1_3.dll

I am using lastest version (1.3.1)
   /// <summary>
    /// Decode the given base64 string to a byte array
    /// </summary>
    _ASYNCRTIMP std::vector<unsigned char> __cdecl from_base64(const utility::string_t& str);
    /// <summary>
    /// Decode the given base64 string to a byte array
    /// </summary>
   _ASYNCRTIMP std::string __cdecl from_base64_str(const std::string& str);
Dependency Walker screenshot:

Image
Coordinator
Dec 2, 2013 at 7:11 PM
Hi LeonidCSIT:

Thanks for your bug report, this is our code defect. We declared this function but did not implement it. You may use "from_base64", which, in windows, takes std::wstring as input.

We will fix this problem soon.

Thanks
Marked as answer by arturl on 12/4/2013 at 9:15 AM