2)链接时碰到下面一大堆错误:
client-SSL-client.o: In function `ACE_SSL_SOCK_Stream::close()‘:
../../../../ace/SSL/SSL_SOCK_Stream.i:278: undefined reference to `SSL_shutdown‘
../../../../ace/SSL/SSL_SOCK_Stream.i:280: undefined reference to `SSL_get_error‘
../../../../ace/SSL/SSL_SOCK_Stream.i:289: undefined reference to `SSL_clear‘
解决办法:
在当胶编译目录下,分别找到examples/IPC_SAP/SSL_SAP/Makefile和tests/SSL/Makefile两个文件,在里面找到"LIBS = -lrt -ldl" 这一项,将其修改为:
LIBS = -lrt -ldl /usr/lib/libssl.a /usr/lib/libcrypto.a
上面两个.a静态库的路径以你实际存放的路径为准
时间: 2024-10-14 02:57:23