Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

"C1083: Cannot open include file: 'winsock2.h': No such file or directory" error when you build Visual C++ projects after you uninstall Visual Studio 2013 Update 3


View products that this article applies to.

Symptoms

Assume that you install Visual Studio 2013 Update 3, and then you uninstall it. When you create a Visual C or Visual C++ project and then you build it, the build fails, and you receive the following error message:
C1083: Cannot open include file: 'winsock2.h': No such file or directory.

↑ Back to the top


Workaround

To work around this issue, use one of the following methods:
  • Follow these steps to repair Visual Studio: 
    1. Download the text file from here.
    2. Rename the text file to a .bat file extension.
    3. Run the .bat file in an administrator command prompt window. This uninstalls the Windows SDK updates that are installed by Visual Studio 2013 Update 3. If you are prompted to restart the system, restart it.
    4. Repair Visual Studio.
  • Install the latest Windows SDK here.

↑ Back to the top


References

For more information about the other known issues that you may experience after you install Visual Studio 2013 Update 3, go to the following knowledge base article:

2933779 Description of Visual Studio 2013 Update 3

↑ Back to the top


Keywords: kbprb, kbsurveynew, kbtshoot, kbexpertiseadvanced, kb

↑ Back to the top

Article Info
Article ID : 2989380
Revision : 1
Created on : 1/7/2017
Published on : 8/20/2014
Exists online : False
Views : 375