0

在对代码进行一些操作后,我得到了链接错误:

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. 如何了解什么系统正在搜索并且无法链接?如何解决这个问题呢?

4

0 回答 0