Undefined reference to WSAStartup [Solved]
By nick | Uncategorized21 Jun 2011
Why am I receiving this error?
You’re receiving this error because you have included a winsock header file and are attempting to use it’s functions without linking it.
Solution:
Add -lwsock32 to your linker options, how to do this will vary depending on which IDE you’re using however the settings will usually be found under “Compiler Options”