Just did, here are the errors I'm getting when I try that code:
D:Program FilesMinGWStudioMUDsDebugserver.o(.text+0xa7): In function `WinMain':
D:Program FilesMinGWStudioMUDsserver.cpp:18: undefined reference to `WSAStartup@8'
D:Program FilesMinGWStudioMUDsDebugserver.o(.text+0xbe):D:Program FilesMinGWStudioMUDsserver.cpp:20: undefined reference to `WSAGetLastError@0'
D:Program FilesMinGWStudioMUDsDebugserver.o(.text+0xdf):D:Program FilesMinGWStudioMUDsserver.cpp:22: undefined reference to `WSACleanup@0'
D:Program FilesMinGWStudioMUDsDebugserver.o(.text+0x10a):D:Program FilesMinGWStudioMUDsserver.cpp:29: undefined reference to `socket@12'
D:Program FilesMinGWStudioMUDsDebugserver.o(.text+0x121):D:Program FilesMinGWStudioMUDsserver.cpp:32: undefined reference to `WSAGetLastError@0'
D:Program FilesMinGWStudioMUDsDebugserver.o(.text+0x142):D:Program FilesMinGWStudioMUDsserver.cpp:34: undefined reference to `WSACleanup@0'
D:Program FilesMinGWStudioMUDsDebugserver.o(.text+0x170):D:Program FilesMinGWStudioMUDsserver.cpp:42: undefined reference to `htons@4'
D:Program FilesMinGWStudioMUDsDebugserver.o(.text+0x19a):D:Program FilesMinGWStudioMUDsserver.cpp:45: undefined reference to `bind@12'
D:Program FilesMinGWStudioMUDsDebugserver.o(.text+0x1b1):D:Program FilesMinGWStudioMUDsserver.cpp:47: undefined reference to `WSAGetLastError@0'
D:Program FilesMinGWStudioMUDsDebugserver.o(.text+0x1d2):D:Program FilesMinGWStudioMUDsserver.cpp:49: undefined reference to `WSACleanup@0'
D:Program FilesMinGWStudioMUDsDebugserver.o(.text+0x1f7):D:Program FilesMinGWStudioMUDsserver.cpp:54: undefined reference to `listen@8'
D:Program FilesMinGWStudioMUDsDebugserver.o(.text+0x20e):D:Program FilesMinGWStudioMUDsserver.cpp:58: undefined reference to `WSAGetLastError@0'
D:Program FilesMinGWStudioMUDsDebugserver.o(.text+0x22f):D:Program FilesMinGWStudioMUDsserver.cpp:60: undefined reference to `WSACleanup@0'
D:Program FilesMinGWStudioMUDsDebugserver.o(.text+0x26c):D:Program FilesMinGWStudioMUDsserver.cpp:68: undefined reference to `accept@12'
D:Program FilesMinGWStudioMUDsDebugserver.o(.text+0x283):D:Program FilesMinGWStudioMUDsserver.cpp:71: undefined reference to `WSAGetLastError@0'
D:Program FilesMinGWStudioMUDsDebugserver.o(.text+0x2a4):D:Program FilesMinGWStudioMUDsserver.cpp:73: undefined reference to `WSACleanup@0'
D:Program FilesMinGWStudioMUDsDebugserver.o(.text+0x2be):D:Program FilesMinGWStudioMUDsserver.cpp:86: undefined reference to `closesocket@4'
D:Program FilesMinGWStudioMUDsDebugserver.o(.text+0x2cf):D:Program FilesMinGWStudioMUDsserver.cpp:87: undefined reference to `closesocket@4'
D:Program FilesMinGWStudioMUDsDebugserver.o(.text+0x2d7):D:Program FilesMinGWStudioMUDsserver.cpp:89: undefined reference to `WSACleanup@0'
EDIT: OK, I toyed around with it, now my code is:
erpt = WSAStartup(sockversion, ( *WSADATA ) &wsaData);
and I'm only getting one error, which is:
server.cpp: In function `int WinMain(HINSTANCE__*, HINSTANCE__*, CHAR*, int)':
server.cpp:18: error: syntax error before `)' token
Come to #coding. We promise we wont kick you!
DISCLAIMER: Promises may not actually be upheld.