我终于构建了 Poco NetSSL,但第一个示例已经不起作用。以下代码段引发异常,并且 Debugger.h 在我的 IDE (Visual Studio 2012) 中打开。
#include <Poco/Net/HTTPSClientSession.h>
int main()
{
Poco::Net::HTTPSClientSession clientSession;
}
这是输出:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
NULL pointer: _pInstance [in file "c:\users\domenic\desktop\poco-1.4.6p1-all\util\include\poco\util\application.h", line 446]
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
以下代码完美运行......
#include <Poco/Net/HTTPClientSession.h>
int main()
{
Poco::Net::HTTPClientSession clientSession;
}
我想这与 OpenSSL 有关。希望有人可以帮助我,我真的很想开始我的项目。:(