コードでいくつかの操作を行った後、リンク エラーが発生しました。
Severity Code Description Project File Line Suppression State
Error LNK2019 unresolved external symbol "__declspec(dllimport) void __cdecl fmt::v7::format_system_error(class fmt::v7::detail::buffer<char> &,int,class fmt::v7::basic_string_view<char>)" (__imp_?format_system_error@v7@fmt@@YAXAEAV?$buffer@D@detail@12@HV?$basic_string_view@D@12@@Z) referenced in function "public: __cdecl spdlog::spdlog_ex::spdlog_ex(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,int)" (??0spdlog_ex@spdlog@@QEAA@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@H@Z) testLVGL C:\cpp_test\testLVGL\boiler_ui2.obj 1
Error LNK2001 unresolved external symbol "__declspec(dllimport) void __cdecl fmt::v7::format_system_error(class fmt::v7::detail::buffer<char> &,int,class fmt::v7::basic_string_view<char>)" (__imp_?format_system_error@v7@fmt@@YAXAEAV?$buffer@D@detail@12@HV?$basic_string_view@D@12@@Z) testLVGL C:\cpp_test\testLVGL\State.obj 1
Error LNK2019 unresolved external symbol "__declspec(dllimport) void __cdecl fmt::v7::detail::assert_fail(char const *,int,char const *)" (__imp_?assert_fail@detail@v7@fmt@@YAXPEBDH0@Z) referenced in function "struct fmt::v7::detail::format_decimal_result<char *> __cdecl fmt::v7::detail::format_decimal<char,unsigned int>(char *,unsigned int,int)" (??$format_decimal@DI@detail@v7@fmt@@YA?AU?$format_decimal_result@PEAD@012@PEADIH@Z) testLVGL C:\cpp_test\testLVGL\boiler_ui2.obj 1
Error LNK2001 unresolved external symbol "__declspec(dllimport) void __cdecl fmt::v7::detail::assert_fail(char const *,int,char const *)" (__imp_?assert_fail@detail@v7@fmt@@YAXPEBDH0@Z) testLVGL C:\cpp_test\testLVGL\State.obj 1
Error LNK2019 unresolved external symbol "__declspec(dllimport) public: static unsigned __int64 const * const fmt::v7::detail::basic_data<void>::zero_or_powers_of_10_64_new" (__imp_?zero_or_powers_of_10_64_new@?$basic_data@X@detail@v7@fmt@@2QB_KB) referenced in function "int __cdecl fmt::v7::detail::count_digits(unsigned __int64)" (?count_digits@detail@v7@fmt@@YAH_K@Z) testLVGL C:\cpp_test\testLVGL\boiler_ui2.obj 1
Error LNK2001 unresolved external symbol "__declspec(dllimport) public: static unsigned __int64 const * const fmt::v7::detail::basic_data<void>::zero_or_powers_of_10_64_new" (__imp_?zero_or_powers_of_10_64_new@?$basic_data@X@detail@v7@fmt@@2QB_KB) testLVGL C:\cpp_test\testLVGL\State.obj 1
Error LNK2019 unresolved external symbol "__declspec(dllimport) public: static unsigned int const * const fmt::v7::detail::basic_data<void>::zero_or_powers_of_10_32_new" (__imp_?zero_or_powers_of_10_32_new@?$basic_data@X@detail@v7@fmt@@2QBIB) referenced in function "int __cdecl fmt::v7::detail::count_digits(unsigned int)" (?count_digits@detail@v7@fmt@@YAHI@Z) testLVGL C:\cpp_test\testLVGL\boiler_ui2.obj 1
Error LNK2001 unresolved external symbol "__declspec(dllimport) public: static unsigned int const * const fmt::v7::detail::basic_data<void>::zero_or_powers_of_10_32_new" (__imp_?zero_or_powers_of_10_32_new@?$basic_data@X@detail@v7@fmt@@2QBIB) testLVGL C:\cpp_test\testLVGL\State.obj 1
Error LNK2019 unresolved external symbol "__declspec(dllimport) public: static char const (* fmt::v7::detail::basic_data<void>::digits)[2]" (__imp_?digits@?$basic_data@X@detail@v7@fmt@@2QAY01$$CBDA) referenced in function "struct fmt::v7::detail::format_decimal_result<char *> __cdecl fmt::v7::detail::format_decimal<char,unsigned int>(char *,unsigned int,int)" (??$format_decimal@DI@detail@v7@fmt@@YA?AU?$format_decimal_result@PEAD@012@PEADIH@Z) testLVGL C:\cpp_test\testLVGL\boiler_ui2.obj 1
Error LNK2001 unresolved external symbol "__declspec(dllimport) public: static char const (* fmt::v7::detail::basic_data<void>::digits)[2]" (__imp_?digits@?$basic_data@X@detail@v7@fmt@@2QAY01$$CBDA) testLVGL C:\cpp_test\testLVGL\State.obj 1
Error LNK2019 unresolved external symbol "void __cdecl fmt::v7::detail::vformat_to<char>(class fmt::v7::detail::buffer<char> &,class fmt::v7::basic_string_view<char>,class fmt::v7::basic_format_args<class fmt::v7::basic_format_context<class fmt::v7::detail::buffer_appender<char>,char> >,class fmt::v7::detail::locale_ref)" (??$vformat_to@D@detail@v7@fmt@@YAXAEAV?$buffer@D@012@V?$basic_string_view@D@12@V?$basic_format_args@V?$basic_format_context@V?$buffer_appender@D@detail@v7@fmt@@D@v7@fmt@@@12@Vlocale_ref@012@@Z) referenced in function "class fmt::v7::detail::buffer_appender<char> __cdecl fmt::v7::format_to<char [6],int &,250,char>(class fmt::v7::basic_memory_buffer<char,250,class std::allocator<char> > &,char const (&)[6],int &)" (??$format_to@$$BY05DAEAH$0PK@D@v7@fmt@@YA?AV?$buffer_appender@D@detail@01@AEAV?$basic_memory_buffer@D$0PK@V?$allocator@D@std@@@01@AEAY05$$CBDAEAH@Z) testLVGL C:\cpp_test\testLVGL\boiler_ui2.obj 1
Error LNK2001 unresolved external symbol "void __cdecl fmt::v7::detail::vformat_to<char>(class fmt::v7::detail::buffer<char> &,class fmt::v7::basic_string_view<char>,class fmt::v7::basic_format_args<class fmt::v7::basic_format_context<class fmt::v7::detail::buffer_appender<char>,char> >,class fmt::v7::detail::locale_ref)" (??$vformat_to@D@detail@v7@fmt@@YAXAEAV?$buffer@D@012@V?$basic_string_view@D@12@V?$basic_format_args@V?$basic_format_context@V?$buffer_appender@D@detail@v7@fmt@@D@v7@fmt@@@12@Vlocale_ref@012@@Z) testLVGL C:\cpp_test\testLVGL\State.obj 1
fmt
グーグルで調べていると、これはライブラリに関連している可能性があることがわかりました。fmt
私は自分のプロジェクトでは直接使用しませんが、 spdlog
. どのシステムが検索していてリンクできないかを理解する方法は? この問題を解決するには?