winsock2.h, no such file or directory

后端 未结 2 407
予麋鹿
予麋鹿 2020-12-20 19:33

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          


        
相关标签:
2条回答
  • 2020-12-20 19:38

    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)

    0 讨论(0)
  • 2020-12-20 19:53

    simply go to project->project properties linker->input in additional dependencies add ws2_32.lib linker ->command line add here ws2_32.lib click start

    0 讨论(0)
提交回复
热议问题