本文介绍了Debian上未指定EVP_idea_ecb的引用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有以下代码:
#include< stdio.h>
#include< stdlib.h>
#include< openssl / evp.h>
int main(int argc,char * argv []){
EVP_CIPHER * cipher;
EVP_idea_ecb();
}
我知道这不是很多,但应该没有投诉,但是我得到
gcc Testfile.c -lssl -lcrypto
Testfile.c :( .text + 0xec):未定义参考`EVP_idea_ecb'
gcc Testfile.c -lss
/ usr / bin / ld:/tmp/ccgbkhFA.o:对'EVP_CIPHER_iv_length @@ OPENSSL_1.0.0'的未定义引用
//usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.0:添加符号错误:命令中缺少DSO
libssl-dev
已安装。任何想法这里出现什么问题?
我的发行版:Debian Jessie on x64。
解决方案
一行一行:
gcc Testfile.c -lssl -lcrypto
Testfile.c :( .text + 0xec):未定义的引用EVP_idea_ecb
Debian的OpenSSL库Jessie x64不包含EVP_idea_ecb。
gcc Testfile.c -lss
/ usr / bin / ld:/ tmp / ccgbkhFA.o:未定义的引用符号'EVP_CIPHER_iv_length @@ OPENSSL_1.0.0'
//usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.0:错误添加符号:DSO从命令中丢失linel
libss2so从libss2命令行界面库包中也没有帮助。 p>
I have the following code:
#include <stdio.h>
#include <stdlib.h>
#include <openssl/evp.h>
int main (int argc, char *argv[]) {
EVP_CIPHER *cipher;
EVP_idea_ecb();
}
I know, this is not much, but it should compile without complaints, but I get
gcc Testfile.c -lssl -lcrypto
Testfile.c:(.text+0xec): undefined reference to `EVP_idea_ecb'
gcc Testfile.c -lss
/usr/bin/ld: /tmp/ccgbkhFA.o: undefined reference to symbol 'EVP_CIPHER_iv_length@@OPENSSL_1.0.0'
//usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.0: error adding symbols: DSO missing from command linel
libssl-dev
are installed. Any ideas what is going wrong here?
My distro: Debian Jessie on x64.
解决方案
What is going on line by line:
gcc Testfile.c -lssl -lcrypto
Testfile.c:(.text+0xec): undefined reference to `EVP_idea_ecb'
OpenSSL library of Debian Jessie x64 doesn't contain EVP_idea_ecb.
gcc Testfile.c -lss
/usr/bin/ld: /tmp/ccgbkhFA.o: undefined reference to symbol 'EVP_CIPHER_iv_length@@OPENSSL_1.0.0'
//usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.0: error adding symbols: DSO missing from command linel
libss.so.2.0 from libss2 command line interface library package doesn't help either.
这篇关于Debian上未指定EVP_idea_ecb的引用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!