Skip to content

Error ONLY in release mode #2425

@nyckmaia

Description

@nyckmaia

My C++ application compile and runs great without any warnings or errors on DEBUG mode.
When I try to compile it on RELEASE mode, I got this compile time error:

Symbol not resolved __imp_strtod
app.obj:-1: error: LNK2019: s¡mbolo externo nÆo resolvido, __imp_strtod, 
referenciado na fun‡Æo "private: enum nlohmann::detail::lexer_base<class nlohmann::basic_json<class std::map,class std::vector,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,bool,__int64,unsigned __int64,double,class std::allocator,struct nlohmann::adl_serializer,class std::vector<unsigned char,class std::allocator<unsigned char> > > >::token_type __cdecl nlohmann::detail::lexer<class nlohmann::basic_json<class std::map,class std::vector,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,bool,__int64,unsigned __int64,double,class std::allocator,struct nlohmann::adl_serializer,class std::vector<unsigned char,class std::allocator<unsigned char> > >,class nlohmann::detail::input_stream_adapter>::scan_number(void)" (?scan_number@?$lexer@V?
$basic_json@Vmap@std@@Vvector@2@V?$basic_string@DU?$char_traits@D@std@@V?
$allocator@D@2@@2@_N_J_KNVallocator@2@Uadl_serializer@nlohmann@@V?$vector@EV?$allocator@E@std@@@2@@nlohmann@@Vinput_stream_adapter@detail@2@@detail@nlohmann@@AEAA?AW4token_type@?$lexer_base@V?$basic_json@Vmap@std@@Vvector@2@V?$basic_string@DU?$char_traits@D@std@@V?
$allocator@D@2@@2@_N_J_KNVallocator@2@Uadl_serializer@nlohmann@@V?$vector@EV?
$allocator@E@std@@@2@@nlohmann@@@23@XZ)

How can I fix it?

My system:

  • Windows 10 x64
  • MSVC 2019 x64
  • Library version 3.9.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    solution: invalidthe issue is not related to the library

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions