You need to modify your project linker settings to include wsock32.lib in order to link with the Winsock2 library.

header file = winsock.h, winsock2.h
libraries = wsock32.lib, w2_32.lib

You can also list the SocketsPP.lib before the wsock32.lib in your linker specification