gpt4 book ai didi

azerothcore - 在 Visual Studio 中构建源代码时 .obj 文件中的错误

转载 作者:行者123 更新时间:2023-12-05 00:46:06 29 4
gpt4 key购买 nike

使用 CMake 的第一步工作就像一个魅力。没有错误出现,一切都按原样生成,但是当我尝试在 Visual Studio 中构建它时,我收到 11 个错误和 3 个警告。

所以错误在 .obj 文件中,不知道如何解决它们。第一个Error在Authserver项目的Main.obj中,第二个在worldserver项目的main.obj中

错误编号 1:

Severity Code Description Project File Line Suppression State Error LNK2019 unresolved external symbol SSLeay_version referenced in function "int __cdecl ace_main_i(int,char * * const)" (?ace_main_i@@YAHHQEAPEAD@Z) authserver C:\Azerothcore\Build\src\server\authserver\Main.obj 1



错误编号 2:

Severity Code Description Project File Line Suppression State Error LNK2019 unresolved external symbol SSLeay_version referenced in function "int __cdecl ace_main_i(int,char * * const)" (?ace_main_i@@YAHHQEAPEAD@Z) worldserver C:\Azerothcore\Build\src\server\worldserver\Main.obj 1



接下来的 4 个错误位于 worldserver 项目中的 shared.lib(OpenSSL crypto.obj) 文件中。

错误编号 1:

Severity Code Description Project File Line Suppression State Error LNK2019 unresolved external symbol CRYPTO_num_locks referenced in function "void __cdecl OpenSSLCrypto::threadsSetup(void)" (?threadsSetup@OpenSSLCrypto@@YAXXZ) worldserver C:\Azerothcore\Build\src\server\worldserver\shared.lib(OpenSSLCrypto.obj) 1



错误编号 2:

Severity Code Description Project File Line Suppression State Error LNK2019 unresolved external symbol CRYPTO_set_locking_callback referenced in function "void __cdecl OpenSSLCrypto::threadsSetup(void)" (?threadsSetup@OpenSSLCrypto@@YAXXZ) worldserver C:\Azerothcore\Build\src\server\worldserver\shared.lib(OpenSSLCrypto.obj) 1



错误编号 3:

Severity Code Description Project File Line Suppression State Error LNK2019 unresolved external symbol CRYPTO_THREADID_set_numeric referenced in function "void __cdecl threadIdCallback(struct crypto_threadid_st *)" (?threadIdCallback@@YAXPEAUcrypto_threadid_st@@@Z) worldserver C:\Azerothcore\Build\src\server\worldserver\shared.lib(OpenSSLCrypto.obj) 1



错误编号 4:

Severity Code Description Project File Line Suppression State Error LNK2019 unresolved external symbol CRYPTO_THREADID_set_callback referenced in function "void __cdecl OpenSSLCrypto::threadsSetup(void)" (?threadsSetup@OpenSSLCrypto@@YAXXZ) worldserver C:\Azerothcore\Build\src\server\worldserver\shared.lib(OpenSSLCrypto.obj) 1



接下来的 3 个错误位于 shared.lib(ARC4.obj) shared.lib(HMACSHA1.obj) 文件中。

错误号 1 ARC4.obj 文件:

Severity Code Description Project File Line Suppression State Error LNK2019 unresolved external symbol EVP_CIPHER_CTX_init referenced in function "public: __cdecl ARC4::ARC4(unsigned int)" (??0ARC4@@QEAA@I@Z) worldserver C:\Azerothcore\Build\src\server\worldserver\shared.lib(ARC4.obj) 1



错误号 2 HMACSHA1 文件:

Severity Code Description Project File Line Suppression State Error LNK2019 unresolved external symbol HMAC_CTX_init referenced in function "struct hmac_ctx_st * __cdecl HMAC_CTX_new(void)" (?HMAC_CTX_new@@YAPEAUhmac_ctx_st@@XZ) worldserver C:\Azerothcore\Build\src\server\worldserver\shared.lib(HMACSHA1.obj) 1



错误号 3 HMACSHA1 文件:

Severity Code Description Project File Line Suppression State Error LNK2019 unresolved external symbol HMAC_CTX_cleanup referenced in function "void __cdecl HMAC_CTX_free(struct hmac_ctx_st *)" (?HMAC_CTX_free@@YAXPEAUhmac_ctx_st@@@Z) worldserver C:\Azerothcore\Build\src\server\worldserver\shared.lib(HMACSHA1.obj) 1

最佳答案

修复了该问题,OpenSSL 的版本已损坏,因此在通过 Cmake 运行时它没有注意到它,但是 Visual Studio 会注意到,因此删除了 OpenSSL,重新安装并重新运行了 Cmake,现在它确实构建得很好

关于azerothcore - 在 Visual Studio 中构建源代码时 .obj 文件中的错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55079184/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com