Hey everybody, Ive read some tutorials about winsock library, but my codes doesnt work, there are many errors about the "include <winsock.h>", so do I need download this library for dev c++? where can I download?
Thank you!
Hey everybody, Ive read some tutorials about winsock library, but my codes doesnt work, there are many errors about the "include <winsock.h>", so do I need download this library for dev c++? where can I download?
Thank you!
your tutorial is slightly outdated.
I would suggest for each function you are using go to msdn and check which header and lib it requires...
for example gethostbyname Function (Windows)
requires include file Winsock2.h
library (for linkage) Ws2_32.lib
and dll (for run) Ws2_32.dll
all this could be found in the requirements section of the page
All problems in computer science can be solved by another level of indirection,
except for the problem of too many layers of indirection.
– David J. Wheeler
if the above dosn't fix, it try including ws2tcpip.h