升压和SSL客户端服务器的建筑问题上的Linux [英] Boost and ssl client server building issue on Linux
问题描述
我已经安装了提升为第三的库当我安装PCL(点云中图书馆)。
现在我试图运行的客户端和服务器程序的http://www.boost.org/doc/libs/1_57_0/doc/html/boost_asio/example/cpp03/ssl/client.cpp
当试图链接所需要的库:
G ++ -I / usr / include目录/升压/ server.cpp -o服务器-lboost_system -lssl -lpthread
出现以下错误:
在/ usr /斌/劳工处:/tmp/ccRbD849.o:未定义的参考符号
ERR_reason_error_string @@ OPENSSL_1.0.0
//lib/x86_64-linux-gnu/libcrypto.so.1.0.0:错误添加符号:DSO
在命令行缺少collect2:错误:LD返回1退出状态
块引用>当我搜索 USR 的文件夹的升压文件夹只有内部存在的的包括的子文件夹。
我能做些什么来解决这个问题。
解决方案
[...] libcrypto.so:[...] DSO命令行缺少
块引用>拼吧!你缺少
-lcrypto
链接器命令行上。事实上,我总是用
-lssl -lcrypto
串联I have installed boost as a third library when I install pcl (Point Cloud Library).
Now I am trying to run client and server programs http://www.boost.org/doc/libs/1_57_0/doc/html/boost_asio/example/cpp03/ssl/client.cpp
When trying to link the required libraries:
g++ -I /usr/include/boost/ server.cpp -o server -lboost_system -lssl -lpthread
following error appears:
/usr/bin/ld: /tmp/ccRbD849.o: undefined reference to symbol 'ERR_reason_error_string@@OPENSSL_1.0.0' //lib/x86_64-linux-gnu/libcrypto.so.1.0.0: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status
When I searched the usr folder the Boost folder exists only inside include subfolder.
What can I do to solve this problem.
解决方案[...] libcrypto.so: [...] DSO missing from command line
spells it out! You are missing
-lcrypto
on the linker command line. In fact I always use
-lssl -lcrypto
in tandem这篇关于升压和SSL客户端服务器的建筑问题上的Linux的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!