Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

winsock2.h, no such file or directory

Tags:

visual-c++

I have this error while compiling my Visual C++ project in Visual Studio 2008 on XP. How to resolve this error :(

Error   1   fatal error C1083: Cannot open include file: 'winsock2.h': No such file or directory    c:\program files\microsoft visual studio 9.0\vc\atlmfc\include\atlbase.h    68  WOT
like image 533
barlyee Avatar asked Sep 02 '10 00:09

barlyee


1 Answers

Your Windows SDK is not configure correctly. The easiest way to fix this is to install Windows 7 SDK. (yes, you can install it on windows xp and develop for xp)

like image 93
J-16 SDiZ Avatar answered Sep 30 '22 20:09

J-16 SDiZ