RE: Error compiling code using winsock functions

2003-07-04 Thread David None
Hi there, thanks for the reply, but I've tried the methods suggested (just using windows.h and #define Win32_Winsock), also as Win32_Winsock is deprecated, I also tried defining __USE_W32_SOCKETS but I'm still receiving the same error: I get the following error: "iphdrinc.o(.text+0x820):iphdrinc

Error compiling code using winsock functions

2003-07-03 Thread David None
Hi there, I've recently been trying some programming with sockets in windows, and I obtained the following code from a microsoft book called "Network programming for microsoft windows"... the code is as follows: // Module Name: iphdrinc.c // #pragma pack(1) #define WIN32_LEAN_AND_MEAN #include