Advertisement

Winsock won't compile

Started by June 29, 2002 08:31 PM
3 comments, last by Lash 22 years, 7 months ago
Hey i'm having problems compiling a small prog that uses winsock. The compiler says that both 'WSAStartup' and 'WSAECONNABORT' are undeclared identifiers. I've linked mpr.lib and wsock32.lib and included winsock.h, so i dunno whats up... (edit: spelling errors ) [edited by - Lash on June 29, 2002 9:32:47 PM]
Try linking "ws2_32.lib".

Advertisement
Thanks, but it still doesn''t work
There''s WSAECONNABORTED, and make sure you spelt WSAStartup right.
---visit #directxdev on afternet <- not just for directx, despite the name
#include <winsock2.h>

And like N&V said, link with ws2_32.lib

This topic is closed to new replies.

Advertisement