首页 > 技术文章 > Visual Studio2017 设置了vcpkg之后,编译其他程序出问题

flyinggod 2019-04-28 17:17 原文

博客参考:https://github.com/nodejs/node/issues/23909

错误如下

LNK2005 _SSL_CTX_check_private_key already defined in ssleay32.

Since NodeJS is providing all of its own dependencies, you can add a property to your MSBuild projects that will totally disable vcpkg's integration:

<PropertyGroup>
  <VcpkgEnabled>false</VcpkgEnabled>
</PropertyGroup>

ProjectName.vcproj中添加如上属性即可

推荐阅读