本文主要是介绍报错lsSocket.cpp:35:7: error: invalid use of incomplete type ‘SSL {aka struct ssl_st}’,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
/erizo/src/erizo/dtls/DtlsSocket.cpp:35:7: error: invalid use of incomplete type ‘SSL {aka struct ssl_st}’
mSsl->ctx = mContext;
^~
In file included from /home/test/.cache/node-gyp/12.14.1/include/node/openssl/rand.h:14:0,
from ../erizo/src/erizo/dtls/DtlsSocket.h:9,
from ../erizo/src/erizo/dtls/DtlsSocket.cpp:1:
/home/test/.cache/node-gyp/12.14.1/include/node/openssl/ossl_typ.h:147:16: note: forward declaration of ‘SSL {aka struct ssl_st}’
typedef struct ssl_st SSL;
^~~~~~
../erizo/src/erizo/dtls/DtlsSocket.cpp:36:7: error: invalid use of incomplete type ‘SSL {aka struct ssl_st}’
mSsl->session_ctx = mContext;
^~
In file included from /home/test/.cache/node-gyp/
注意上边红色 部分,删除openssl目录 ,使用 系统的openssl目录即可
这篇关于报错lsSocket.cpp:35:7: error: invalid use of incomplete type ‘SSL {aka struct ssl_st}’的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!