Hello people!

When I compile my code for TCP/IP using winsock.h & windows.h, it compiles flawlessly. But then everytime I build my binary, linker errors pop out from nowhere:

Linker Error: Undefined SOCKET blah blah blah...
Linker Error: Undefined GETHOSTBYNAME blah blah blah...
etc...
etc...
etc...

I already checked my header file and it did contain typedefs for SOCKET and other relevant declarations.

Do I need to link the winsock.dll itself to my obj file after I compile my code?

Analyzing sockets are pretty tough, but it's challenging. Hope you guys out there can assist.

Thanks!