且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在 Visual Studio 中使用 cURLpp?

更新时间:2023-09-30 12:37:40

我用vcpkg安装curlpp,发现我在visual studio中的项目配置是x64,如果我使用 x86 curlpp 它会得到构建错误,我需要使用 x64 curlpp 然后构建成功.

I use vcpkg to install curlpp, and I find that my project configuration in visual studio is x64, if I use x86 curlpp it will get build error, I need to use x64 curlpp then build sucess.

这是包含步骤:

  1. 运行cmd命令:vcpkg install curlpp:x64-windows
  2. 转到项目>配置属性 ->链接器 ->一般 ->其他库目录,添加 yourVcpkgFolderPath\vcpkg\installed\x64-windows\lib\
  3. 转到项目>配置属性 ->链接器 ->输入 ->附加依赖项,添加 curlpp.lib

然后构建项目,它应该构建成功.

Then build the project, it should build success.