w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Visual Studio 2013: fatal error C1083: Cannot open include file: 'winsock2.h': No such file or directory

I searched under the SDK folder for the missing file and found it. Because the SDK was installed after I migrated the projects, the paths were not included in my projects. I was able to fix everything by adding to my include and lib paths.

I added the following folders to my include paths:



My full include path for both Debug and Release now looks like this:


I added the following folder to my lib paths (note that is specific to a 32-bit build! see x64 for 64-bit, and arm for arm builds...):


My full lib path looks like this:


Note that if you have a copy of the original project file, you can also fix the problem by re-migrating it again after the Windows SDK is installed.

© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.