yourWaifu / sleepy-discord

C++ library for the Discord chat client. Please use Rust for new bots
https://yourWaifu.github.io/sleepy-discord/
MIT License
708 stars 93 forks source link

error LNK2001:Cannot parse the external symbol "public: static class SleepyDiscord::GenericSession * (__cdecl* SleepyDiscord::CustomSession::init)(void)" #226

Open jmp19940829 opened 3 years ago

jmp19940829 commented 3 years ago

1>------ 已启动全部重新生成: 项目: ZERO_CHECK, 配置: RelWithDebInfo Win32 ------ 1>Checking Build System 1>CMake is re-running because C:/Users/ASUS/Desktop/deps/build1/sleepy-discord/deps/cpr/CMakeFiles/generate.stamp is out-of-date. 1> the file 'C:/Users/ASUS/Desktop/deps/sleepy-discord/deps/cpr/CMakeLists.txt' 1> is newer than 'C:/Users/ASUS/Desktop/deps/build1/sleepy-discord/deps/cpr/CMakeFiles/generate.stamp.depend' 1> result='0' 1>-- Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.17763. 1>-- Downloading/updating cpr 1>CMake Deprecation Warning at CMakeLists.txt:4 (cmake_minimum_required): 1> Compatibility with CMake < 2.8.12 will be removed from a future version of 1> CMake. 1> 1> Update the VERSION argument value or use a ... suffix to tell 1> CMake that the project does not need compatibility with older versions. 1> 1> 1>-- Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.17763. 1>-- Configuring done 1>-- Generating done 1>-- Build files have been written to: C:/Users/ASUS/Desktop/deps/build1/cpr-download 1>用于 .NET Framework 的 Microsoft (R) 生成引擎版本 16.7.0+b89cb5fde 1>版权所有(C) Microsoft Corporation。保留所有权利。 1> 1>-- Downloading/updating asio 1>CMake Deprecation Warning at CMakeLists.txt:4 (cmake_minimum_required): 1> Compatibility with CMake < 2.8.12 will be removed from a future version of 1> CMake. 1> 1> Update the VERSION argument value or use a ... suffix to tell 1> CMake that the project does not need compatibility with older versions. 1> 1> 1>-- Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.17763. 1>-- Configuring done 1>-- Generating done 1>-- Build files have been written to: C:/Users/ASUS/Desktop/deps/build1/asio-download 1>用于 .NET Framework 的 Microsoft (R) 生成引擎版本 16.7.0+b89cb5fde 1>版权所有(C) Microsoft Corporation。保留所有权利。 1> 1>-- Downloading/updating websocketpp 1>CMake Deprecation Warning at CMakeLists.txt:4 (cmake_minimum_required): 1> Compatibility with CMake < 2.8.12 will be removed from a future version of 1> CMake. 1> 1> Update the VERSION argument value or use a ... suffix to tell 1> CMake that the project does not need compatibility with older versions. 1> 1> 1>-- Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.17763. 1>-- Configuring done 1>-- Generating done 1>-- Build files have been written to: C:/Users/ASUS/Desktop/deps/build1/websocketpp-download 1>用于 .NET Framework 的 Microsoft (R) 生成引擎版本 16.7.0+b89cb5fde 1>版权所有(C) Microsoft Corporation。保留所有权利。 1> 1>CMake Error at sleepy-discord/CMakeLists.txt:198 (add_subdirectory): 1> The source directory 1> 1> C:/Users/ASUS/Desktop/deps/sleepy-discord/deps/cpr 1> 1> does not contain a CMakeLists.txt file. 1> 1> 1>CMake Deprecation Warning at sleepy-discord/deps/websocketpp/CMakeLists.txt:5 (cmake_minimum_required): 1> Compatibility with CMake < 2.8.12 will be removed from a future version of 1> CMake. 1> 1> Update the VERSION argument value or use a ... suffix to tell 1> CMake that the project does not need compatibility with older versions. 1> 1> 1>** websocketpp 1> 1>=========== Used Build Configuration ============= 1> 1>-- ENABLE_CPP11 = ON 1>-- BUILD_EXAMPLES = OFF 1>-- BUILD_TESTS = OFF 1> 1>-- WEBSOCKETPP_ROOT = C:/Users/ASUS/Desktop/deps/sleepy-discord/deps/websocketpp 1>-- WEBSOCKETPP_BIN = C:/Users/ASUS/Desktop/deps/build1/sleepy-discord/deps/websocketpp/bin 1>-- WEBSOCKETPP_LIB = C:/Users/ASUS/Desktop/deps/build1/sleepy-discord/deps/websocketpp/lib 1>-- Install prefix = C:/Program Files (x86)/example 1> 1>-- WEBSOCKETPP_BOOST_LIBS = 1>-- WEBSOCKETPP_PLATFORM_LIBS = 1>-- WEBSOCKETPP_PLATFORM_TLS_LIBS = 1> 1>-- OPENSSL_FOUND = 1>-- OPENSSL_INCLUDE_DIR = F:\vcpkg\installed\x86-windows\include 1>-- OPENSSL_LIBRARIES = 1>-- OPENSSL_VERSION = 1> 1>-- Configuring incomplete, errors occurred! 1>See also "C:/Users/ASUS/Desktop/deps/build1/CMakeFiles/CMakeOutput.log". 1>See also "C:/Users/ASUS/Desktop/deps/build1/CMakeFiles/CMakeError.log". 1>CMake Configure step failed. Build files cannot be regenerated correctly. Attempting to stop IDE build. 1>D:\VS2019\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(234,5): error MSB6006: “cmd.exe”已退出,代码为 1。 1>已完成生成项目“ZERO_CHECK.vcxproj”的操作 - 失败。 2>------ 已启动全部重新生成: 项目: libcurl, 配置: RelWithDebInfo Win32 ------ 3>------ 已启动全部重新生成: 项目: sleepy-discord, 配置: RelWithDebInfo Win32 ------ 4>------ 已跳过全部重新生成: 项目: uninstall, 配置: RelWithDebInfo Win32 ------ 4>没有为此解决方案配置选中要生成的项目 2>Building Custom Rule C:/Users/ASUS/Desktop/deps/build1/_deps/curl-src/lib/CMakeLists.txt 3>Building Custom Rule C:/Users/ASUS/Desktop/deps/sleepy-discord/sleepy_discord/CMakeLists.txt 2>file.c 3>asio_udp.cpp 2>timeval.c 3>C:\Users\ASUS\Desktop\deps\sleepy-discord\include\sleepy_discord\IncludeNonexistent\asio.hpp(2,1): warning C4005: “NONEXISTENT_ASIO”: 宏重定义 3>C:\Users\ASUS\Desktop\deps\sleepy-discord\sleepy_discord\asio_udp.cpp : message : 参见“NONEXISTENT_ASIO”的前一个定义 3>C:\Users\ASUS\Desktop\deps\sleepy-discord\include\sleepy_discord\IncludeNonexistent\boost/asio.hpp(2,1): warning C4005: “NONEXISTENT_BOOST_ASIO”: 宏重定义 3>C:\Users\ASUS\Desktop\deps\sleepy-discord\sleepy_discord\asio_udp.cpp : message : 参见“NONEXISTENT_BOOST_ASIO”的前一个定义 3>attachment.cpp 2>base64.c 2>hostip.c 2>progress.c 2>formdata.c 3>channel.cpp 2>cookie.c 2>http.c 2>sendf.c 2>ftp.c 2>url.c 2>dict.c 3>client.cpp 2>if2ip.c 2>speedcheck.c 2>ldap.c 2>version.c 2>getenv.c 2>escape.c 2>mprintf.c 2>telnet.c 2>正在生成代码... 2>正在编译... 2>netrc.c 2>getinfo.c 3>C:\Users\ASUS\Desktop\deps\sleepy-discord\include\sleepy_discord\IncludeNonexistent\asio.hpp(2,1): warning C4005: “NONEXISTENT_ASIO”: 宏重定义 3>C:\Users\ASUS\Desktop\deps\sleepy-discord\sleepy_discord\client.cpp : message : 参见“NONEXISTENT_ASIO”的前一个定义 3>C:\Users\ASUS\Desktop\deps\sleepy-discord\include\sleepy_discord\IncludeNonexistent\boost/asio.hpp(2,1): warning C4005: “NONEXISTENT_BOOST_ASIO”: 宏重定义 2>transfer.c 3>C:\Users\ASUS\Desktop\deps\sleepy-discord\sleepy_discord\client.cpp : message : 参见“NONEXISTENT_BOOST_ASIO”的前一个定义 2>strcase.c 2>easy.c 2>security.c 2>curl_fnmatch.c 2>fileinfo.c 2>ftplistparser.c 2>wildcard.c 2>krb5.c 2>memdebug.c 3>cpr_session.cpp 3>C:\Users\ASUS\Desktop\deps\sleepy-discord\include\sleepy_discord\cpr_session.h(7,1): warning C4005: “NONEXISTENT_CPR”: 宏重定义 3>C:\Users\ASUS\Desktop\deps\sleepy-discord\sleepy_discord\cpr_session.cpp : message : 参见“NONEXISTENT_CPR”的前一个定义 3>default_functions.cpp 2>http_chunks.c 2>strtok.c 2>connect.c 2>llist.c 2>hash.c 2>multi.c 2>content_encoding.c 2>share.c 2>正在生成代码... 2>正在编译... 2>http_digest.c 2>md4.c 2>md5.c 3>C:\Users\ASUS\Desktop\deps\sleepy-discord\include\sleepy_discord\IncludeNonexistent\asio.hpp(2,1): warning C4005: “NONEXISTENT_ASIO”: 宏重定义 3>C:\Users\ASUS\Desktop\deps\sleepy-discord\sleepy_discord\default_functions.cpp : message : 参见“NONEXISTENT_ASIO”的前一个定义 3>C:\Users\ASUS\Desktop\deps\sleepy-discord\include\sleepy_discord\IncludeNonexistent\boost/asio.hpp(2,1): warning C4005: “NONEXISTENT_BOOST_ASIO”: 宏重定义 2>http_negotiate.c 3>C:\Users\ASUS\Desktop\deps\sleepy-discord\sleepy_discord\default_functions.cpp : message : 参见“NONEXISTENT_BOOST_ASIO”的前一个定义 2>inet_pton.c 2>strtoofft.c 2>strerror.c 2>amigaos.c 2>hostasyn.c 2>hostip4.c 3>embed.cpp 2>hostip6.c 2>hostsyn.c 2>inet_ntop.c 2>parsedate.c 2>select.c 2>tftp.c 3>endpoints.cpp 2>splay.c 2>strdup.c 2>socks.c 2>curl_addrinfo.c 2>正在生成代码... 2>正在编译... 2>socks_gssapi.c 2>socks_sspi.c 2>curl_sspi.c 2>slist.c 2>nonblock.c 2>curl_memrchr.c 2>imap.c 2>pop3.c 2>smtp.c 2>pingpong.c 3>C:\Users\ASUS\Desktop\deps\sleepy-discord\include\sleepy_discord\IncludeNonexistent\asio.hpp(2,1): warning C4005: “NONEXISTENT_ASIO”: 宏重定义 3>C:\Users\ASUS\Desktop\deps\sleepy-discord\sleepy_discord\endpoints.cpp : message : 参见“NONEXISTENT_ASIO”的前一个定义 3>C:\Users\ASUS\Desktop\deps\sleepy-discord\include\sleepy_discord\IncludeNonexistent\boost/asio.hpp(2,1): warning C4005: “NONEXISTENT_BOOST_ASIO”: 宏重定义 3>C:\Users\ASUS\Desktop\deps\sleepy-discord\sleepy_discord\endpoints.cpp : message : 参见“NONEXISTENT_BOOST_ASIO”的前一个定义 2>rtsp.c 2>curl_threads.c 2>warnless.c 2>hmac.c 2>curl_rtmp.c 2>openldap.c 2>curl_gethostname.c 2>gopher.c 2>idn_win32.c 2>http_proxy.c 2>正在生成代码... 2>正在编译... 2>non-ascii.c 2>asyn-ares.c 2>asyn-thread.c 2>curl_gssapi.c 3>gateway.cpp 2>http_ntlm.c 2>curl_ntlm_wb.c 2>curl_ntlm_core.c 2>curl_sasl.c 2>rand.c 2>curl_multibyte.c 2>hostcheck.c 3>http.cpp 2>conncache.c 2>dotdot.c 3>invite.cpp 2>x509asn1.c 2>http2.c 2>smb.c 2>curl_endian.c 2>curl_des.c 2>system_win32.c 2>mime.c 2>正在生成代码... 2>正在编译... 2>sha256.c 3>json_wrapper.cpp 2>setopt.c 2>curl_path.c 2>curl_ctype.c 3>message.cpp 2>curl_range.c 2>psl.c 2>doh.c 2>urlapi.c 2>curl_get_line.c 2>altsvc.c 2>socketpair.c 2>rename.c 2>vauth.c 2>cleartext.c 2>cram.c 2>digest.c 2>digest_sspi.c 2>krb5_gssapi.c 2>krb5_sspi.c 3>C:\Users\ASUS\Desktop\deps\sleepy-discord\include\sleepy_discord\IncludeNonexistent\asio.hpp(2,1): warning C4005: “NONEXISTENT_ASIO”: 宏重定义 3>C:\Users\ASUS\Desktop\deps\sleepy-discord\sleepy_discord\message.cpp : message : 参见“NONEXISTENT_ASIO”的前一个定义 3>C:\Users\ASUS\Desktop\deps\sleepy-discord\include\sleepy_discord\IncludeNonexistent\boost/asio.hpp(2,1): warning C4005: “NONEXISTENT_BOOST_ASIO”: 宏重定义 3>C:\Users\ASUS\Desktop\deps\sleepy-discord\sleepy_discord\message.cpp : message : 参见“NONEXISTENT_BOOST_ASIO”的前一个定义 2>ntlm.c 2>正在生成代码... 2>正在编译... 2>ntlm_sspi.c 2>oauth2.c 2>spnego_gssapi.c 2>spnego_sspi.c 3>permissions.cpp 2>openssl.c 2>gtls.c 2>vtls.c 2>nss.c 2>mbedtls_threadlock.c 2>wolfssl.c 2>schannel.c 2>schannel_verify.c 3>sd_error.cpp 2>sectransp.c 2>gskit.c 2>mbedtls.c 2>mesalink.c 2>bearssl.c 2>ngtcp2.c 2>quiche.c 2>libssh2.c 2>正在生成代码... 2>正在编译... 2>libssh.c 2>wolfssh.c 2>正在生成代码... 3>C:\Users\ASUS\Desktop\deps\sleepy-discord\include\sleepy_discord\IncludeNonexistent\asio.hpp(2,1): warning C4005: “NONEXISTENT_ASIO”: 宏重定义 3>C:\Users\ASUS\Desktop\deps\sleepy-discord\sleepy_discord\sd_error.cpp : message : 参见“NONEXISTENT_ASIO”的前一个定义 3>C:\Users\ASUS\Desktop\deps\sleepy-discord\include\sleepy_discord\IncludeNonexistent\boost/asio.hpp(2,1): warning C4005: “NONEXISTENT_BOOST_ASIO”: 宏重定义 3>C:\Users\ASUS\Desktop\deps\sleepy-discord\sleepy_discord\sd_error.cpp : message : 参见“NONEXISTENT_BOOST_ASIO”的前一个定义 2>LINK : warning LNK4044: 无法识别的选项“/MANIFEST:NO”;已忽略 2>libcurl.vcxproj -> C:\Users\ASUS\Desktop\deps\build1\lib\RelWithDebInfo\libcurl.lib 3>server.cpp 2>已完成生成项目“libcurl.vcxproj”的操作。 5>------ 已启动全部重新生成: 项目: cpr, 配置: RelWithDebInfo Win32 ------ 5>Building Custom Rule C:/Users/ASUS/Desktop/deps/sleepy-discord/deps/cpr/cpr/CMakeLists.txt 5>CMake is re-running because C:/Users/ASUS/Desktop/deps/build1/sleepy-discord/deps/cpr/cpr/CMakeFiles/generate.stamp is out-of-date. 5> the file 'C:/Users/ASUS/Desktop/deps/sleepy-discord/deps/cpr/cpr/CMakeLists.txt' 5> is newer than 'C:/Users/ASUS/Desktop/deps/build1/sleepy-discord/deps/cpr/cpr/CMakeFiles/generate.stamp.depend' 5> result='0' 5>-- Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.17763. 5>-- Downloading/updating cpr 5>CMake Deprecation Warning at CMakeLists.txt:4 (cmake_minimum_required): 5> Compatibility with CMake < 2.8.12 will be removed from a future version of 5> CMake. 5> 5> Update the VERSION argument value or use a ... suffix to tell 5> CMake that the project does not need compatibility with older versions. 5> 5> 5>-- Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.17763. 5>-- Configuring done 5>-- Generating done 5>-- Build files have been written to: C:/Users/ASUS/Desktop/deps/build1/cpr-download 3>C:\Users\ASUS\Desktop\deps\sleepy-discord\include\sleepy_discord\IncludeNonexistent\asio.hpp(2,1): warning C4005: “NONEXISTENT_ASIO”: 宏重定义 3>C:\Users\ASUS\Desktop\deps\sleepy-discord\sleepy_discord\server.cpp : message : 参见“NONEXISTENT_ASIO”的前一个定义 3>C:\Users\ASUS\Desktop\deps\sleepy-discord\include\sleepy_discord\IncludeNonexistent\boost/asio.hpp(2,1): warning C4005: “NONEXISTENT_BOOST_ASIO”: 宏重定义 3>C:\Users\ASUS\Desktop\deps\sleepy-discord\sleepy_discord\server.cpp : message : 参见“NONEXISTENT_BOOST_ASIO”的前一个定义 5>用于 .NET Framework 的 Microsoft (R) 生成引擎版本 16.7.0+b89cb5fde 5>版权所有(C) Microsoft Corporation。保留所有权利。 5> 5>-- Downloading/updating asio 5>CMake Deprecation Warning at CMakeLists.txt:4 (cmake_minimum_required): 5> Compatibility with CMake < 2.8.12 will be removed from a future version of 5> CMake. 5> 5> Update the VERSION argument value or use a ... suffix to tell 5> CMake that the project does not need compatibility with older versions. 5> 5> 5>-- Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.17763. 3>user.cpp 5>-- Configuring done 5>-- Generating done 5>-- Build files have been written to: C:/Users/ASUS/Desktop/deps/build1/asio-download 5>用于 .NET Framework 的 Microsoft (R) 生成引擎版本 16.7.0+b89cb5fde 5>版权所有(C) Microsoft Corporation。保留所有权利。 5> 3>uwebsockets_websocket.cpp 3>voice.cpp 5>-- Downloading/updating websocketpp 5>CMake Deprecation Warning at CMakeLists.txt:4 (cmake_minimum_required): 5> Compatibility with CMake < 2.8.12 will be removed from a future version of 5> CMake. 5> 5> Update the VERSION argument value or use a ... suffix to tell 5> CMake that the project does not need compatibility with older versions. 5> 5> 5>-- Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.17763. 5>-- Configuring done 3>voice_connection.cpp 5>-- Generating done 5>-- Build files have been written to: C:/Users/ASUS/Desktop/deps/build1/websocketpp-download 5>用于 .NET Framework 的 Microsoft (R) 生成引擎版本 16.7.0+b89cb5fde 5>版权所有(C) Microsoft Corporation。保留所有权利。 5> 5>CMake Error at sleepy-discord/CMakeLists.txt:198 (add_subdirectory): 5> The source directory 5> 5> C:/Users/ASUS/Desktop/deps/sleepy-discord/deps/cpr 5> 5> does not contain a CMakeLists.txt file. 5> 5> 5>CMake Deprecation Warning at sleepy-discord/deps/websocketpp/CMakeLists.txt:5 (cmake_minimum_required): 5> Compatibility with CMake < 2.8.12 will be removed from a future version of 5> CMake. 5> 5> Update the VERSION argument value or use a ... suffix to tell 5> CMake that the project does not need compatibility with older versions. 5> 5> 5>* websocketpp 5> 5>=========== Used Build Configuration ============= 5> 5>-- ENABLE_CPP11 = ON 5> 5> 5> 5>-- BUILD_EXAMPLES = OFF 5>-- BUILD_TESTS = OFF 5>-- WEBSOCKETPP_ROOT = C:/Users/ASUS/Desktop/deps/sleepy-discord/deps/websocketpp 5>-- WEBSOCKETPP_BIN = C:/Users/ASUS/Desktop/deps/build1/sleepy-discord/deps/websocketpp/bin 5>-- WEBSOCKETPP_LIB = C:/Users/ASUS/Desktop/deps/build1/sleepy-discord/deps/websocketpp/lib 5>-- Install prefix = C:/Program Files (x86)/example 5>-- WEBSOCKETPP_BOOST_LIBS = 5>-- WEBSOCKETPP_PLATFORM_LIBS = 5>-- WEBSOCKETPP_PLATFORM_TLS_LIBS = 5>-- OPENSSL_FOUND = 5> 5>-- OPENSSL_INCLUDE_DIR = F:\vcpkg\installed\x86-windows\include 5>-- OPENSSL_LIBRARIES = 5>-- OPENSSL_VERSION = 5>-- Configuring incomplete, errors occurred! 5>See also "C:/Users/ASUS/Desktop/deps/build1/CMakeFiles/CMakeOutput.log". 5>See also "C:/Users/ASUS/Desktop/deps/build1/CMakeFiles/CMakeError.log". 5>D:\VS2019\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(234,5): error MSB6006: “cmd.exe”已退出,代码为 1。 5>已完成生成项目“cpr.vcxproj”的操作 - 失败。 3>正在生成代码... 3>正在编译... 3>webhook.cpp 3>websocketpp_websocket.cpp 3>zlib-ng_compression.cpp 3>正在生成代码... 3>sleepy-discord.vcxproj -> C:\Users\ASUS\Desktop\deps\build1\sleepy-discord\sleepy_discord\RelWithDebInfo\sleepy-discord.lib 3>已完成生成项目“sleepy-discord.vcxproj”的操作。 6>------ 已启动全部重新生成: 项目: replace-me, 配置: RelWithDebInfo Win32 ------ 6>Building Custom Rule C:/Users/ASUS/Desktop/deps/CMakeLists.txt 6>source.cpp 6>C:\Users\ASUS\Desktop\deps\sleepy-discord\include\sleepy_discord\IncludeNonexistent\asio.hpp(2,1): warning C4005: “NONEXISTENT_ASIO”: 宏重定义 6>C:\Users\ASUS\Desktop\deps\source.cpp : message : 参见“NONEXISTENT_ASIO”的前一个定义 6>C:\Users\ASUS\Desktop\deps\sleepy-discord\include\sleepy_discord\IncludeNonexistent\boost/asio.hpp(2,1): warning C4005: “NONEXISTENT_BOOST_ASIO”: 宏重定义 6>C:\Users\ASUS\Desktop\deps\source.cpp : message : 参见“NONEXISTENT_BOOST_ASIO”的前一个定义 6>sleepy-discord.lib(client.obj) : error LNK2001: 无法解析的外部符号 "public: static class SleepyDiscord::GenericSession (__cdecl* SleepyDiscord::CustomSession::init)(void)" (?init@CustomSession@SleepyDiscord@@2Q6APAVGenericSession@2@XZA) 6>C:\Users\ASUS\Desktop\deps\build1\RelWithDebInfo\replace-me.exe : fatal error LNK1120: 1 个无法解析的外部命令 6>已完成生成项目“replace-me.vcxproj”的操作 - 失败。 7>------ 已启动全部重新生成: 项目: ALL_BUILD, 配置: RelWithDebInfo Win32 ------ 7>Building Custom Rule C:/Users/ASUS/Desktop/deps/CMakeLists.txt 8>------ 已跳过全部重新生成: 项目: INSTALL, 配置: RelWithDebInfo Win32 ------ 8>没有为此解决方案配置选中要生成的项目 ========== 全部重新生成: 成功 3 个,失败 3 个,跳过 2 个 ==========