Home > Back-end >  Poco installed with vcpkg is missing ssl related header files
Poco installed with vcpkg is missing ssl related header files

Time:03-04

I use the command to install Poco.

vcpkg.exe install openssl:x64-windows

And openssl x64 is installed. When i use visual studio 2022, it show me that it can't found the file Poco/Net/SSLManager.h, and Other libraries related to ssl. Why is this happening?

#include "Poco/StreamCopier.h"
#include "Poco/URI.h"
#include "Poco/Exception.h"
#include "Poco/SharedPtr.h"
#include "Poco/Net/SSLManager.h"
#include "Poco/Net/KeyConsoleHandler.h"
#include "Poco/Net/ConsoleCertificateHandler.h"
#include "Poco/Net/HTTPSClientSession.h"
#include "Poco/Net/HTTPRequest.h"
#include "Poco/Net/HTTPResponse.h"
#include <memory>
#include <iostream>

CodePudding user response:

Ok guys, i get the answer. when you install poco, just add this:

vcpkg install poco[netssl]
  • Related