我在我的代碼中使用crypto ++。我不想使用它的依賴,所以我已經盡力匯入我的文件夾中的加密+ +文件,包括他們在我的.cpp文件鏈接錯誤:未定義引用EVP_CIPHER_CTX_和EVP_CIPHER_CTX_init
我有followng錯誤:
TEST.cpp:(.text+0x89a0): undefined reference to `EVP_CIPHER_CTX_init'
TEST.cpp:(.text+0x8cb0): undefined reference to `EVP_aes_128_cbc'
TEST.cpp:(.text+0x8cdd): undefined reference to `EVP_CipherInit_ex'
TEST.cpp:(.text+0x8d49): undefined reference to `EVP_CipherUpdate'
TEST.cpp:(.text+0x8dd6): undefined reference to `EVP_CipherFinal_ex'
TEST.cpp:(.text+0x922d): undefined reference to `EVP_CIPHER_CTX_cleanup'
我失去了什麼?需要一些幫助。欣賞! 我在ubuntu工作。
哪些文件具有您導入?只有標題或源代碼?只導入標題是不夠的,因爲你的應用程序必須鏈接到加密++對象文件(庫) – istepura
我只導入了「evp.h」。我應該輸入什麼?需要一些幫助。謝謝 – sunset