Please understand what is a dll, the approach you take is completely wrong.
Include dll winsock.dll means you should try to get the file from somewhere, usually you will get winsock.dll with the installation of the compiler.
and The above mentioned method is not a way to create a DLL file.