I am trying window socket programming in c++.I am using winsock2.h for this purpose.i am doing this in code blocks using GNU GCC and getting errors as shown in attachment as you can see.This is important to know that I trying just client server model. I am not putting my code here because code is available on msdn(I have just copied from there).I am just providing link
Server code https://msdn.microsoft.com/en-us/library/windows/desktop/ms737593(v=vs.85).aspx
client code https://msdn.microsoft.com/en-us/library/windows/desktop/ms737591(v=vs.85).aspx