DolphinDB C++ API 编译报错 /usr/bin/ld: cannot find -lssl

我根据这份教程在linux操作系统上使用DolphinDB C++ API。编译main.cpp的时候遇到这个问题:

$ g++ main.cpp -std=c++11 -DLINUX -DLOGGING_LEVEL_2 -O2 -I../include -lDolphinDBAPI -lssl -lpthread -luuid -L../bin -Wl,-rpath ../bin/ -o main
/usr/bin/ld: cannot find -lssl
collect2: error: ld returned 1 exit status

查看了一下相关帖子,确认我g++版本是v6.2以上的:

$ g++ --version
g++ (Ubuntu 7.4.0-1ubuntu1~18.04) 7.4.0
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

请问各位大神们这是什么原因?如何解决?望指教,感谢!!

请先 登录 后评论

1 个回答

Jason Tang - 时序数据库技术支持

openssl 没有装,或者不在查找路径里。

先去确认 openssl 是不是装了吧。

请先 登录 后评论