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!
This is a discussion on Proramming with winsock within the Networking/Device Communication forums, part of the General Programming Boards category; Hey everybody, Ive read some tutorials about winsock library, but my codes doesnt work, there are many errors about the ...
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
If I have eight hours for cutting wood, I spend six sharpening my axe.
if the above dosn't fix, it try including ws2tcpip.h