I'm trying to create a simple winsock client written in C. I'm developing in Visual Studio Express.
I cut and paste a simple sample client and tried to compile but I receive "Unresolved external 'WSAIoctl' referenced from".
The build is obviously not linking in the ws2_32 library. Can someone tell how can I configure Visual Studio Express to link in this file?
Secondary question, I want my final exe file to be completely self contained, I don't want dynamic linking of dlls. How can I do this?