0

I am using vcpkg to download cpprest package, So i can use cpprest in my project:

#include <cpprest/http_client.h>
#include <cpprest/filestream.h>

But after build my project, it will generate executable binary and also generate cpprest.dll, LIBEAY32.dll and SSLEAY32.dll and zlib1.dll in the Release folder

How to combile the dll into one executable ?

roalz
  • 2,699
  • 3
  • 25
  • 42
Moon soon
  • 2,616
  • 2
  • 30
  • 51

1 Answers1

1

You can use static libraries in such cases and the command line will go like so . No DLL files will be required as the lib libraries can be linked directly to produce executables.

  .\vcpkg install ccprest:x64-windows-static
seccpur
  • 4,996
  • 2
  • 13
  • 21