简体   繁体   English

安装Visual Studio需要40多个小时

[英]Installing Visual Studio takes more than 40 hours

I recently started programming in C++ and required a specific library (Ws2_32.lib) that comes with visual studio. 我最近开始使用C ++进行编程,并且需要Visual Studio随附的特定库(Ws2_32.lib)。 I was reluctant to download visual studio for something so simple but couldn't find an alternative. 我不愿意为如此简单的内容下载Visual Studio,但找不到其他选择。 The problem is that it has been 43 hours and visual studio community 2015 has still not finished installing. 问题是已经过去了43个小时,Visual Studio Community 2015仍未完成安装。 I have searched for this problem and common solutions and have crossed a few off the list: 我已经搜索了这个问题和常见的解决方案,并从列表中删除了一些:

1. It isn't to do with network connection (the network has been connected the whole time and the acquiring bar is full, it is stuck on the applying stage) 1.与网络连接无关(网络一直处于连接状态,并且采集条已满,处于应用阶段)
2. It isn't just a long install (average install for visual studio is an hour) 2.不仅安装时间长(Visual Studio的平均安装时间是一个小时)

Is there a way to fix this and/or get Ws2_32.lib seperately? 有没有办法解决此问题和/或单独获取Ws2_32.lib?

EDIT: The install is not hung, it is still installing just incredibly slowly. 编辑:安装未挂起,它仍然安装得非常慢。

安装程序的屏幕截图

If you don't actually want the VS IDE, you should simply download the MinGW C++ compiler from somewhere like http://tdm-gcc.tdragon.net which includes import libraries for all of the Win32 APIs. 如果您实际上不需要VS IDE,则只需从http://tdm-gcc.tdragon.net之类的位置下载MinGW C ++编译器,其中包括所有Win32 API的导入库。 Installing takes about 5 minutes. 安装大约需要5分钟。

The Windows SDK is available as a separate download (see Windows 10 SDK ). Windows SDK可单独下载(请参阅Windows 10 SDK )。 You don't need Visual Studio to get the Windows Sockets 2 libraries. 您不需要Visual Studio即可获取Windows Sockets 2库。

If you do want to use Visual Studio for Windows programming (an this is highly recommended), make sure to only install those features, that you are actually planning to use. 如果确实要使用Visual Studio for Windows编程(强烈建议使用Visual Studio),请确保仅安装您实际打算使用的功能。 Even though 43 hours is longer than anything I have heard reports from, installing Visual Studio can take considerably longer than setting up an entire OS. 尽管43小时的时间比我所听到的报告要长,但安装Visual Studio所花费的时间可能比设置整个操作系统所需的时间要长得多。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM