我在我的代码中使用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