Re: [Dev-C++] Problems with "winsock2.h"
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: <ste...@ge...> - 2002-07-30 22:25:31
|
You need to link the winsock library to your project... Go to your project options, and write "-lwsock32" (without the quotes) = in the linker options field ;) regards - Stein Nyg=E5rd - http://null.dk/~stein for(a=3D0, b=3D1; a<b; a++, b++){} ----- Original Message -----=20 From: cim=20 To: dev...@li...=20 Sent: Tuesday, July 30, 2002 3:30 PM Subject: [Dev-C++] Problems with "winsock2.h" Anyone could explain me why for every function included in = "winsock2.h" compiler says "[Linker error] undefined reference to = 'FUNCTION_NAME @ INT'" (for example, for the function "connect" the = message is =20 "[Linker error] undefined reference to `connect @ 12'"). How can i solve this problem? Thanks, Max |