 <p>Some things to check:</p> <ul> <li><p>Does MinGW actually find the <code>winsock</code> library? (It seems so, since there's no explicit error saying otherwise.) If it does not, try to supply an additional library search path using <code>-L</code>.</p></li> <li><p>Did you compile the <code>winsock</code> library source yourself, also with MinGW? If the answer is "no", and the source code is available, that's what you might have to do, so that MinGW will recognise the exported symbols in the library object file.</p></li> </ul>