Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/visual-studio/8.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C++ visual studio 2010 c++;项目_C++_Visual Studio_Openssl_Poco Libraries - Fatal编程技术网

C++ visual studio 2010 c++;项目

C++ visual studio 2010 c++;项目,c++,visual-studio,openssl,poco-libraries,C++,Visual Studio,Openssl,Poco Libraries,尝试链接Poco的静态库会引发以下错误 1>PocoNetSSLmd.lib(SSLManager.obj) : error LNK2001: unresolved external symbol X509_verify_cert_error_string 1>PocoNetSSLmd.lib(Utility.obj) : error LNK2001: unresolved external symbol X509_verify_cert_error_string 但是项目链接到的

尝试链接Poco的静态库会引发以下错误

1>PocoNetSSLmd.lib(SSLManager.obj) : error LNK2001: unresolved external symbol X509_verify_cert_error_string
1>PocoNetSSLmd.lib(Utility.obj) : error LNK2001: unresolved external symbol X509_verify_cert_error_string
但是项目链接到的libeay32.lib静态库包含这些符号

$ dumpbin /ALL libeay32.lib | grep X509_STORE_CTX_get_error
    915B6 _X509_STORE_CTX_get_error
    915B6 __imp__X509_STORE_CTX_get_error
    9162E _X509_STORE_CTX_get_error_depth
    9162E __imp__X509_STORE_CTX_get_error_depth
      92C _X509_STORE_CTX_get_error
      92D _X509_STORE_CTX_get_error_depth
      92C __imp__X509_STORE_CTX_get_error
      92D __imp__X509_STORE_CTX_get_error_depth
  Symbol name  : _X509_STORE_CTX_get_error
  Symbol name  : _X509_STORE_CTX_get_error_depth
          1016    _X509_STORE_CTX_get_error
          1017    _X509_STORE_CTX_get_error_depth
预处理器符号POCO_STATIC、POCO_NO_UNWINDOWS、POCO_HAVE_IPv6在项目设置中设置


如何解决此问题。

在项目属性中的链接器页面上,将POCO库的路径添加到“其他库条目”页面。 另外,在属性>常规>MFC的使用上,选择“在静态库中使用MFC

根据您使用的POCO lib,您可能需要为POCO/Foundation和至少一个其他POCO lib添加路径。

您确定已将libeay32.lib指定给链接器吗?或者至少运行dumpbin的那个是包含的那个(它的路径是linker/LIBPATH:entries中的第一个路径)?