[英]Folder "Microsoft Visual Studio 14.0" Is Missing
I'm trying to add pthread
library to Visual Studio 2017 (I'm using Windows 10 OS).我正在尝试将
pthread
库添加到 Visual Studio 2017(我使用的是 Windows 10 操作系统)。 I'm using the following guide from another post tat I saw, but I can't find the "Microsoft Visual Studio 14.0" folder in "C:\Program Files x86".我正在使用我看到的另一篇文章中的以下指南,但我在“C:\Program Files x86”中找不到“Microsoft Visual Studio 14.0”文件夹。 I have Visual Studio 2017 and It's working.
我有 Visual Studio 2017,它正在运行。 I've checked and I've installed the Visual Studio C++. What else should I install?
我已经检查并安装了 Visual Studio C++。我还应该安装什么? Is there any other way to include
pthread
library by just adding it to the project and including the path to the library in the linker or something similar?有没有其他方法可以通过将
pthread
库添加到项目并将库的路径包含在 linker 或类似的东西中来包含 pthread 库?
Thank you谢谢
Since visual studio 2017 visual studio is installed in C:\Program Files (x86)\Microsoft Visual Studio\<version>\<edition>
by default eg C:\Program Files (x86)\Microsoft Visual Studio\2017\Community
.由于 visual studio 2017 visual studio 默认安装在
C:\Program Files (x86)\Microsoft Visual Studio\<version>\<edition>
例如C:\Program Files (x86)\Microsoft Visual Studio\2017\Community
。 There are other changes to the internal layout of files within the visual studio directory too. visual studio 目录中文件的内部布局也有其他变化。 Your guide seems to only provide libraries for Visual Studio 2010 and 2012, these won't work in 2017, you should try to find an updated guide (or just use
std::thread
instead of pthread
s).您的指南似乎只为 Visual Studio 2010 和 2012 提供库,这些库在 2017 年不起作用,您应该尝试找到更新的指南(或者只使用
std::thread
而不是pthread
s)。
Installing these files inside the visual studio directory isn't the right approach anyway, install them to a directory of your choice and update your project settings to point to that directory.在 visual studio 目录中安装这些文件无论如何都不是正确的方法,将它们安装到您选择的目录并更新您的项目设置以指向该目录。 The lazy approach in the guide is likely to cause problems in the long run.
指南中的懒惰方法从长远来看可能会导致问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.