webrtc-sdk / webrtc-build

webrtc build scripts
MIT License
23 stars 24 forks source link

Building debug version webrtc.lib successed,but failed in linking #2

Closed pango99 closed 1 week ago

pango99 commented 2 years ago

Hi: I follow the steps wrote in windows.md to compile the debug version of webrtc.lib using vs2019, the compiling is successed, then I create a console project and link the webrtc.lib,but the linking operation is failed,the linker report below errors:

1>webrtc.lib(rtc_certificate.obj) : error LNK2001: unresolved external symbol "void (cdecl* std::1::libcpp_debug_function)(struct std::1::libcpp_debug_info const &)" (?libcpp_debug_function@1@std@@3P6AXAEBUlibcpp_debug_info@12@@ZEA) 1>webrtc.lib(async_resolver.obj) : error LNK2001: unresolved external symbol "void (cdecl* std::1::libcpp_debug_function)(struct std::1::libcpp_debug_info const &)" (?libcpp_debug_function@1@std@@3P6AXAEBUlibcpp_debug_info@12@@ZEA) 1>webrtc.lib(ssl_fingerprint.obj) : error LNK2001: unresolved external symbol "void (cdecl* std::1::libcpp_debug_function)(struct std::1::libcpp_debug_info const &)" (?libcpp_debug_function@1@std@@3P6AXAEBUlibcpp_debug_info@12@@ZEA) 1>webrtc.lib(base64.obj) : error LNK2001: unresolved external symbol "void (cdecl* std::1::libcpp_debug_function)(struct std::1::libcpp_debug_info const &)" (?libcpp_debug_function@1@std@@3P6AXAEBUlibcpp_debug_info@12@@ZEA) 1>webrtc.lib(async_resolver_interface.obj) : error LNK2001: unresolved external symbol "void (cdecl* std::1::libcpp_debug_function)(struct std::1::libcpp_debug_info const &)" (?libcpp_debug_function@1@std@@3P6AXAEBUlibcpp_debug_info@12@@ZEA) 1>webrtc.lib(ssl_identity.obj) : error LNK2001: unresolved external symbol "void (cdecl* std::1::libcpp_debug_function)(struct std::1::libcpp_debug_info const &)" (?libcpp_debug_function@1@std@@3P6AXAEBUlibcpp_debug_info@12@@ZEA) 1>webrtc.lib(helpers.obj) : error LNK2001: unresolved external symbol "void (cdecl* std::1::libcpp_debug_function)(struct std::1::libcpp_debug_info const &)" (?libcpp_debug_function@1@std@@3P6AXAEBUlibcpp_debug_info@12@@ZEA) 1>webrtc.lib(message_digest.obj) : error LNK2001: unresolved external symbol "void (cdecl* std::1::libcpp_debug_function)(struct std::1::libcpp_debug_info const &)" (?libcpp_debug_function@1@std@@3P6AXAEBUlibcpp_debug_info@12@@ZEA) 1>webrtc.lib(openssl_digest.obj) : error LNK2001: unresolved external symbol "void (cdecl* std::1::libcpp_debug_function)(struct std::1::libcpp_debug_info const &)" (?libcpp_debug_function@1@std@@3P6AXAEBUlibcpp_debug_info@12@@ZEA) 1>webrtc.lib(platform_thread.obj) : error LNK2001: unresolved external symbol "void (cdecl* std::1::libcpp_debug_function)(struct std::1::libcpp_debug_info const &)" (?libcpp_debug_function@1@std@@3P6AXAEBUlibcpp_debug_info@12@@ZEA) 1>webrtc.lib(sequence_checker_internal.obj) : error LNK2001: unresolved external symbol "void (cdecl* std::1::libcpp_debug_function)(struct std::1::libcpp_debug_info const &)" (?libcpp_debug_function@1@std@@3P6AXAEBUlibcpp_debug_info@12@@ZEA) 1>webrtc.lib(ssl_certificate.obj) : error LNK2001: unresolved external symbol "void (cdecl* std::1::libcpp_debug_function)(struct std::1::libcpp_debug_info const &)" (?libcpp_debug_function@1@std@@3P6AXAEBUlibcpp_debug_info@12@@ZEA) 1>webrtc.lib(openssl_key_pair.obj) : error LNK2001: unresolved external symbol "void (cdecl* std::1::libcpp_debug_function)(struct std::1::libcpp_debug_info const &)" (?libcpp_debug_function@1@std@@3P6AXAEBUlibcpp_debug_info@12@@ZEA) 1>webrtc.lib(boringssl_certificate.obj) : error LNK2001: unresolved external symbol "void (cdecl* std::1::libcpp_debug_function)(struct std::1::libcpp_debug_info const &)" (?libcpp_debug_function@1@std@@3P6AXAEBUlibcpp_debug_info@12@@ZEA) 1>webrtc.lib(physical_socket_server.obj) : error LNK2001: unresolved external symbol "void (cdecl* std::1::libcpp_debug_function)(struct std::1::libcpp_debug_info const &)" (?libcpp_debug_function@1@std@@3P6AXAEBUlibcpp_debug_info@12@@ZEA) 1>webrtc.lib(string_builder.obj) : error LNK2001: unresolved external symbol "void (cdecl* std::1::libcpp_debug_function)(struct std::1::libcpp_debug_info const &)" (?libcpp_debug_function@1@std@@3P6AXAEBUlibcpp_debug_info@12@@ZEA) 1>webrtc.lib(string_utils.obj) : error LNK2001: unresolved external symbol "void (cdecl* std::1::libcpp_debug_function)(struct std::1::libcpp_debug_info const &)" (?libcpp_debug_function@1@std@@3P6AXAEBUlibcpp_debug_info@12@@ZEA) 1>webrtc.lib(async_socket.obj) : error LNK2001: unresolved external symbol "void (cdecl* std::1::libcpp_debug_function)(struct std::1::libcpp_debug_info const &)" (?libcpp_debug_function@1@std@@3P6AXAEBUlibcpp_debug_info@12@@ZEA) 1>webrtc.lib(openssl_session_cache.obj) : error LNK2001: unresolved external symbol "void (cdecl* std::1::libcpp_debug_function)(struct std::1::libcpp_debug_info const &)" (?libcpp_debug_function@1@std@@3P6AXAEBUlibcpp_debug_info@12@@ZEA) 1>webrtc.lib(boringssl_identity.obj) : error LNK2001: unresolved external symbol "void (cdecl* std::1::libcpp_debug_function)(struct std::1::libcpp_debug_info const &)" (?libcpp_debug_function@1@std@@3P6AXAEBUlibcpp_debug_info@12@@ZEA) 1>webrtc.lib(string_encode.obj) : error LNK2001: unresolved external symbol "void (cdecl* std::1::libcpp_debug_function)(struct std::1::libcpp_debug_info const &)" (?libcpp_debug_function@1@std@@3P6AXAEBUlibcpp_debug_info@12@@ZEA) 1>webrtc.lib(event_tracer.obj) : error LNK2001: unresolved external symbol "void (cdecl* std::1::libcpp_debug_function)(struct std::1::libcpp_debug_info const &)" (?libcpp_debug_function@1@std@@3P6AXAEBUlibcpp_debug_info@12@@ZEA) 1>webrtc.lib(location.obj) : error LNK2001: unresolved external symbol "void (cdecl* std::1::libcpp_debug_function)(struct std::1::libcpp_debug_info const &)" (?libcpp_debug_function@1@std@@3P6AXAEBUlibcpp_debug_info@12@@ZEA) 1>webrtc.lib(socket_address.obj) : error LNK2001: unresolved external symbol "void (cdecl* std::1::libcpp_debug_function)(struct std::1::libcpp_debug_info const &)" (?libcpp_debug_function@1@std@@3P6AXAEBUlibcpp_debug_info@12@@ZEA) 1>webrtc.lib(ip_address.obj) : error LNK2001: unresolved external symbol "void (cdecl* std::1::libcpp_debug_function)(struct std::1::libcpp_debug_info const &)" (?libcpp_debug_function@1@std@@3P6AXAEBUlibcpp_debug_info@12@@ZEA) 1>webrtc.lib(thread.obj) : error LNK2001: unresolved external symbol "void (cdecl* std::1::libcpp_debug_function)(struct std::1::libcpp_debug_info const &)" (?libcpp_debug_function@1@std@@3P6AXAEBUlibcpp_debug_info@12@@ZEA) 1>webrtc.lib(openssl_adapter.obj) : error LNK2001: unresolved external symbol "void (cdecl* std::1::libcpp_debug_function)(struct std::1::libcpp_debug_info const &)" (?libcpp_debug_function@1@std@@3P6AXAEBUlibcpp_debug_info@12@@ZEA) 1>webrtc.lib(checks.obj) : error LNK2001: unresolved external symbol "void (cdecl* std::1::libcpp_debug_function)(struct std::1::libcpp_debug_info const &)" (?libcpp_debug_function@1@std@@3P6AXAEBUlibcpp_debug_info@12@@ZEA) 1>webrtc.lib(logging.obj) : error LNK2001: unresolved external symbol "void (cdecl* std::1::libcpp_debug_function)(struct std::1::libcpp_debug_info const &)" (?libcpp_debug_function@1@std@@3P6AXAEBUlibcpp_debug_info@12@@ZEA) 1>webrtc.lib(socket_address.obj) : error LNK2019: unresolved external symbol "class std::1::basic_string<char,struct std::__1::char_traits,class std::1::allocator > cdecl std::1::to_string(int)" (?to_string@1@std@@YA?AV?$basic_string@DU?$char_traits@D@1@std@@V?$allocator@D@23@@12@H@Z) referenced in function "public: class std::1::basic_string<char,struct std::__1::char_traits,class std::1::allocator > cdecl rtc::SocketAddress::PortAsString(void)const " (?PortAsString@SocketAddress@rtc@@QEBA?AV?$basic_string@DU?$char_traits@D@1@std@@V?$allocator@D@23@@1@std@@XZ) 1>webrtc.lib(physical_socket_server.obj) : error LNK2019: unresolved external symbol "unsigned int64 cdecl std::1::next_prime(unsigned int64)" (?next_prime@1@std@@YA_K_K@Z) referenced in function "public: void cdecl std::1::hash_table<struct std::1::hash_value_type<unsigned int64,class rtc::Dispatcher *>,class std::1::unordered_map_hasher<unsigned int64,struct std::1::hash_value_type<unsigned int64,class rtc::Dispatcher *>,struct std::1::hash,struct std::__1::equal_to<unsigned int64>,1>,class std::1::unordered_map_equal<unsigned int64,struct std::1::hash_value_type<unsigned int64,class rtc::Dispatcher >,struct std::__1::equal_to,struct std::1::hash<unsigned int64>,1>,class std::1::allocator<struct std::1::hash_value_type<unsigned int64,class rtc::Dispatcher > > >::rehash(unsigned int64)" (?rehash@?$hash_table@U?$hash_value_type@_KPEAVDispatcher@rtc@@@1@std@@V?$unordered_map_hasher@_KU?$hash_value_type@_KPEAVDispatcher@rtc@@@1@std@@U?$hash@_K@23@U?$equal_to@_K@23@$00@23@V?$__unordered_map_equal@_KU?$hash_value_type@_KPEAVDispatcher@rtc@@@1@std@@U?$equal_to@_K@23@U?$hash@_K@23@$00@23@V?$allocator@U?$__hash_value_type@_KPEAVDispatcher@rtc@@@1@std@@@23@@__1@std@@QEAAX_K@Z) 1>C:\Users\Administrator\Desktop\PeerConnectionClientDemo-master\x64\Debug\PeerConnectionClientDemo.exe : fatal error LNK1120: 3 unresolved externals

What's wrong with my webrtc.lib?