I am working on a sockets program. What files do I include in Project Options with Dev-C++ for listen(); socket(); and connect();??
Printable View
I am working on a sockets program. What files do I include in Project Options with Dev-C++ for listen(); socket(); and connect();??
try wsock32.lib
Yo,
Use wsock32.lib
Cheers
TNT
I already tried it, but it didn't work.
Hi,
What error are u getting when u include that lib? It may be a header that you are excluding, winsock.h
Dev C++ uses a different library, check this thread.
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)'
I use '-lwsock'. That works.