【问题标题】:Visual studio 2017 cpprestsdk for linux适用于 Linux 的 Visual Studio 2017 cpprestsdk
【发布时间】:2018-04-08 14:21:41
【问题描述】:

我正在尝试使用 VS2017 为 web post(REST) 构建一个 linux 控制台应用程序。

我可以用 VS2017 为 linux 编译 cpprestsdk 吗?

【问题讨论】:

  • 你如何计划 VS2017 在 Linux 上工作?

标签: linux visual-studio cpprest-sdk


【解决方案1】:

当然可以。

  1. 使用“使用 C++ 进行 Linux 开发”安装 Vs2017
    https://www.hanselman.com/blog/WritingAndDebuggingLinuxCApplicationsFromVisualStudioUsingTheWindowsSubsystemForLinux.aspx
    那么您现在可以使用 Linux 创建和调试了
  2. 在您的 Linux 服务器上安装 cpprestsdk
    https://github.com/Microsoft/cpprestsdk/wiki/How-to-build-for-Linux
  3. 打开 VS 项目 [链接器] 的 [属性] -> [输入]
    将“boost_system;crypto;ssl;cpprest”添加到 [Library Dependencies]。

    然后它工作。 希望这会对您有所帮助。

【讨论】:

    猜你喜欢
    • 2018-11-14
    • 1970-01-01
    • 2017-04-27
    • 2018-03-16
    • 2017-10-03
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-02-25
    相关资源
    最近更新 更多