I am working on a sockets program. What files do I include in Project Options with Dev-C++ for listen(); socket(); and connect();??
I am working on a sockets program. What files do I include in Project Options with Dev-C++ for listen(); socket(); and connect();??
Website(s): http://www16.brinkster.com/trifaze/
E-mail: [email protected]
---------------------------------
C++ Environment: MSVC++ 6.0; Dev-C++ 4.0/4.1
DirectX Version: 9.0b
DX SDK: DirectX 8.1 SDK
try wsock32.lib
Sometimes, the farthest point from the center is the center itself.
Your life is your canvas, it's only as beautiful as you paint it.
Yo,
Use wsock32.lib
Cheers
TNT
TNT
You Can Stop Me, But You Cant Stop Us All
I already tried it, but it didn't work.
Website(s): http://www16.brinkster.com/trifaze/
E-mail: [email protected]
---------------------------------
C++ Environment: MSVC++ 6.0; Dev-C++ 4.0/4.1
DirectX Version: 9.0b
DX SDK: DirectX 8.1 SDK
Hi,
What error are u getting when u include that lib? It may be a header that you are excluding, winsock.h
TNT
You Can Stop Me, But You Cant Stop Us All
Dev C++ uses a different library, check this thread.
zen
This is in the linker errors:
c:\my documents\keyboard.o(.text+0x34a):keyboard.cpp: undefined reference to `socket(int, int, int)'
c:\my documents\keyboard.o(.text+0x3a8):keyboard.cpp: undefined reference to `connect(int, sockaddr *, int)'
Website(s): http://www16.brinkster.com/trifaze/
E-mail: [email protected]
---------------------------------
C++ Environment: MSVC++ 6.0; Dev-C++ 4.0/4.1
DirectX Version: 9.0b
DX SDK: DirectX 8.1 SDK
I use '-lwsock'. That works.
// Gliptic