I think you'll find it's ws2_32.lib ... Windows libraries are named *.lib... not *.a
Nice catch actually, but GCC creates archives named with a ".a" extension by default even on Windows, and the MinGW distribution holds to that by providing their version of the Windows libraries with a ".a" extension.

Soma