-5

I have the client and server program separately. All I need is a step by step guidance on how to run them on dev c++. There are no issues with the code. When I compile the codes, the compilers says: sys/socket.h: no such file or directory. How do I correct that? The code is in c++. And if it can not be run in Dev, kindly tell me in which environment can it be run. Any help is much appreciated. Thank you.

Anan
  • 181
  • 1
  • 2
  • 14

1 Answers1

1

sys/socket.h, along with many other headers you'll find, is not available on Windows.

Have a look at winsock2.h

Matthew Darnell
  • 1,315
  • 2
  • 12
  • 24