<div dir="ltr"><div dir="ltr">Hello, <div><br></div><div>I get the above error when trying to build openssl. I am on a x64 Windows 10 platform, using perl 5, version 26, subversion 3 (v5.26.3) built for MSWin32-x64-multi-thread and Visual studio express for Windows 10</div><div><br></div><div>The file limits is clearly located within the include folder of my visual studio installation and I have my environment variable set so that i can build openssl outside of the source tree. Unfortunately, I am at a loss as to why the build is unable to find this file. </div><div>I have tried running vcvars32.bat and vcvarsx86_amd64.bat prior to running the configure and build scripts but have not been successful on both occasions.</div><div><br></div><div>In addition when i run the Configure script, I would normally select VC-WIN64A, and I have also tried  running vsvars32.bat prior to running the Configure and make scripts<br></div><div><br></div><div>Sometimes I get similar error with the build unable to find a different file, in this instance <b>winsock2.h</b></div><div><b><br></b></div><div><div>Can any of you kind folk please help?  I hope you can see my screenshot</div></div><div><br></div><div>Many Thanks in advance</div><div><br></div><div><div><b>C:\Users\hello\_DEV\3di\openssl>nmake</b></div><div><b><br></b></div><div><b>Microsoft (R) Program Maintenance Utility Version 14.00.24210.0</b></div><div><b>Copyright (C) Microsoft Corporation.  All rights reserved.</b></div><div><b><br></b></div><div><b>        "C:\Perl64\bin\perl.exe" "-I." -Mconfigdata "util\<a href="http://dofile.pl">dofile.pl</a>"  "-omakefile" "crypto\include\internal\<a href="http://bn_conf.h.in">bn_conf.h.in</a>" > crypto\include\internal\bn_conf.h</b></div><div><b>        "C:\Perl64\bin\perl.exe" "-I." -Mconfigdata "util\<a href="http://dofile.pl">dofile.pl</a>"  "-omakefile" "crypto\include\internal\<a href="http://dso_conf.h.in">dso_conf.h.in</a>" > crypto\include\internal\dso_conf.h</b></div><div><b>        "C:\Perl64\bin\perl.exe" "-I." -Mconfigdata "util\<a href="http://dofile.pl">dofile.pl</a>"  "-omakefile" "doc\man7\<a href="http://openssl_user_macros.pod.in">openssl_user_macros.pod.in</a>" > doc\man7\openssl_user_macros.pod</b></div><div><b>        "C:\Perl64\bin\perl.exe" "-I." -Mconfigdata "util\<a href="http://dofile.pl">dofile.pl</a>"  "-omakefile" "include\openssl\<a href="http://opensslconf.h.in">opensslconf.h.in</a>" > include\openssl\opensslconf.h</b></div><div><b>        "C:\Perl64\bin\perl.exe" "-I." -Mconfigdata "util\<a href="http://dofile.pl">dofile.pl</a>"  "-omakefile" "test\<a href="http://provider_internal_test.conf.in">provider_internal_test.conf.in</a>" > test\provider_internal_test.conf</b></div><div><b>        "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\nmake.exe" /                   depend && "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\nmake.exe" /                   _all</b></div><div><b><br></b></div><div><b>Microsoft (R) Program Maintenance Utility Version 14.00.24210.0</b></div><div><b>Copyright (C) Microsoft Corporation.  All rights reserved.</b></div><div><b><br></b></div><div><b><br></b></div><div><b>Microsoft (R) Program Maintenance Utility Version 14.00.24210.0</b></div><div><b>Copyright (C) Microsoft Corporation.  All rights reserved.</b></div><div><b><br></b></div><div><b>        cl  /Zi /Fdossl_static.pdb /Gs0 /GF /Gy /MD /W3 /wd4090 /nologo /O2 /I "." /I "include" /I "apps\include" -D"L_ENDIAN" -D"OPENSSL_PIC" -D"OPENSSL_CPUID_OBJ" -D"OPENSSL_IA32_SSE2" -D"OPENSSL_BN_ASM_MONT" -D"OPENSSL_BN_ASM_MONT5" -D"OPENSSL_BN_ASM_GF2m" -D"SHA1_ASM" -D"SHA256_ASM" -D"SHA512_ASM" -D"KECCAK1600_ASM" -D"RC4_ASM" -D"MD5_ASM" -D"AES_ASM" -D"VPAES_ASM" -D"BSAES_ASM" -D"GHASH_ASM" -D"ECP_NISTZ256_ASM" -D"X25519_ASM" -D"POLY1305_ASM" -D"OPENSSLDIR=\"C:\\Program Files\\Common Files\\SSL\"" -D"ENGINESDIR=\"C:\\Program Files\\OpenSSL\\lib\\engines-3\"" -D"MODULESDIR=\"C:\\Program Files\\OpenSSL\\lib\\ossl-modules\"" -D"OPENSSL_SYS_WIN32" -D"WIN32_LEAN_AND_MEAN" -D"UNICODE" -D"_UNICODE" -D"_CRT_SECURE_NO_DEPRECATE" -D"_WINSOCK_DEPRECATED_NO_WARNINGS" -D"OPENSSL_USE_APPLINK" -D"NDEBUG"   -c /Foapps\libapps-lib-app_rand.obj "apps\app_rand.c"</b></div><div><b>app_rand.c</b></div><div><b>C:\Users\hello\_DEV\3di\openssl\e_os.h(129): fatal error C1083: Cannot open include file: 'winsock2.h': No such file or directory</b></div><div><b>NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\cl.EXE"' : return code '0x2'</b></div><div><b>Stop.</b></div><div><b>NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\nmake.exe"' : return code '0x2'</b></div><div><b>Stop.</b></div></div><div><br></div><div><br></div><div><br></div></div></div>