CPP库-POCO
注意 http 模块不能再线程里面调用,否则退出时会有内存泄漏.
使用 vcpkg 安装
git clone https://github.com/Microsoft/vcpkg.git |
git clone https://github.com/Microsoft/vcpkg.git |
设置一下第三方库:
buildwin.cmd里面配置openssl和mysql的目录
- 编译openssl
下载openssl1.1.1b,按照poco里面的,拷贝到C:\OpenSSL
MySQL
下载Connector/C 6.1.11即可,用的是里面的include和lib编译
C:\%POCO_BASE%\openssl\build.ps1 -openssl_release 1.1.0 -vs_version 150 -config both -platform Win32 -library shared |
没有 openssl 等第三方库
vs2015 版本,使用 build 命令行执行下面命令
buildwin.cmd 140 build all release Win32 samples tests msbuild |