Visual Studio2017 设置了vcpkg之后,编译其他程序出问题

博客参考: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中添加如上属性即可

猜你喜欢

转载自www.cnblogs.com/flyinggod/p/10785190.html