Actually, this is more of a general question, but I'm really new to the C and C++ languages, and since I've only ever really used Java and it's standard libraries, I'm unsure about how to link things in C (or C++, but I'm just using C for now)
Right now, I'm trying to use an example on Winsock, using Dev-CPP editor. I have the winsock.h included, which works fine, but I get a linker error for every winsock function I try to call.
I'm pretty sure I'm supposed to link to wsock32 or ws2_32 libraries, but I don't know how to find them or link them. So can someone tell me how linking works, and how to set it up?
Thanks in advance
Right now, I'm trying to use an example on Winsock, using Dev-CPP editor. I have the winsock.h included, which works fine, but I get a linker error for every winsock function I try to call.
I'm pretty sure I'm supposed to link to wsock32 or ws2_32 libraries, but I don't know how to find them or link them. So can someone tell me how linking works, and how to set it up?
Thanks in advance