简体   繁体   English

文件夹“Microsoft Visual Studio 14.0”丢失

[英]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.

相关问题 我在笔记本电脑上找不到文件夹C:\\ Program Files(x86)\\ Microsoft Visual Studio 14.0 \\ VC \\ include \\ gl。 如何添加? - I cannot find the folder C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\gl on my laptop. How do I add it? VS2015:从CLI使用/ Wall但在某些文件中禁用警告(例如:在Microsoft Visual Studio 14.0中使用) - VS2015: using /Wall from the CLI but disabling warning in some file (eg: thoses in Microsoft Visual Studio 14.0) pycocotools - “需要 Microsoft Visual C++ 14.0 或更高版本”虽然已安装 - pycocotools - "Microsoft Visual C++ 14.0 or greater is required" although installed Visual Studio 14.0 使用 cstdint 和 stdint.h 给出编译错误 - Visual studio 14.0 giving compile errors with cstdint and stdint.h Visual Studio 14.0和Windows Kits中的错误包括文件夹 - Errors in Visual Studio 14.0 and Windows Kits Include Folders Microsoft Visual Studio中的游标 - Cursor in Microsoft Visual Studio PIP安装CROSSBAR会给出错误:需要Microsoft Visual C ++ 14.0。 使用“ Microsoft Visual C ++生成工具”获得它: - PIP INSTALL CROSSBAR gives error: Microsoft Visual C++ 14.0 is required. Get it with “Microsoft Visual C++ Build Tools”: 尝试安装用 c 编写的软件包需要 Microsoft Visual C++ 14.0 - Microsoft Visual C++ 14.0 is required trying to install packages written in c 错误:安装 pandas-profiling 时需要 Microsoft Visual C++ 14.0 或更高版本 - error: Microsoft Visual C++ 14.0 or greater is required during installation of pandas-profiling Visual Studio丢失; *之前 - Visual Studio missing ; before *
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM