将OpenSSL从.97e升级到1.0.2d时,我面临这些错误,
BasicAuthCertificateLoader.cpp:在全球范围内: BasicAuthCertificateLoader.cpp:493:错误:
X509*CBasicAuthCertificateLoader::GetCert' is not a static member of
类CBasicAuthCertificateLoader' BasicAuthCertificateLoader.cpp:493:错误:LHASH' was not declared in this scope BasicAuthCertificateLoader.cpp:493: error:
conf'不是 在此范围内声明BasicAuthCertificateLoader.cpp:493:错误: 在' '之前预期的主要表达代币 BasicAuthCertificateLoader.cpp:493:错误:req' was not declared in this scope BasicAuthCertificateLoader.cpp:493: error: expected primary-expression before '*' token BasicAuthCertificateLoader.cpp:493: error:
发行人'没有宣布 在此范围BasicAuthCertificateLoader.cpp:493:错误:预期 在' '之前的主要表达代币 BasicAuthCertificateLoader.cpp:493:错误:priv_key' was not declared in this scope BasicAuthCertificateLoader.cpp:493: error: expected primary-expression before "days" BasicAuthCertificateLoader.cpp:494: error: initializer expression list treated as compound expression BasicAuthCertificateLoader.cpp:494: error: expected
,'或;' before '{' token BasicAuthCertificateLoader.cpp: In member function
HRESULT CBasicAuthCertificateLoader :: GenerateCertificateData(char *,X509 **, EVP_PKEY **,PKCS12 **)&#39 ;: BasicAuthCertificateLoader.cpp:651:错误:LHASH' was not declared in this scope BasicAuthCertificateLoader.cpp:651: error:
CONF'未被宣布 此范围BasicAuthCertificateLoader.cpp:674:警告:强制转换const char*' to
void *的'从指针目标类型中丢弃限定符 BasicAuthCertificateLoader.cpp:691:错误:GetCert' was not declared in this scope BasicAuthCertificateLoader.cpp:705: error:
GetCert'是 未在此范围内声明
有没有人遇到类似的错误?
答案 0 :(得分:0)
错误:在此范围内未声明“LHASH”...
确保相关的源文件包含lhash.h
:
#include <openssl/lhash.h>
另见lhash(3)
手册页。
如果您已经包含lhash.h
,那么您的项目可能未正确设置。
您应首先清除此错误,因为它列出了第一个错误。这些错误有一种链接方式:
At global scope: BasicAuthCertificateLoader.cpp:493:
error: X509* CBasicAuthCertificateLoader::GetCert' is not a static member
of class CBasicAuthCertificateLoader'