could anyone please tell me, how to link that library WS2_32.lib?
I try to learn about windows sockets, but I get the LNK2019-Error. I know that I need the library but I don't know how to tell the linker the path to the lib!
Thanks in advance
To link from dos command prompt like me just add the option swith "/link C:\MyVisualStudio\VCxx\Lib\WS2_32.LIB" . There are no macro function like /MD which is used for linking MSVCRT.LIB so you have type it out with your location path. Type CL /? for further help.
Hope this helps...
You also can use in the Following way.
#pragma comment(lib, "ws2_32.lib")
Thanks a lot, this solved my two weeks old problem :)
some details for people who face a similar problem in future:
I was trying to use VXL library with visual studio 2012. I successfully compiled the library and could also execute the simple hello world program. However, I couldn't execute any program for image processing. I had many link errors like the following: