使用 <winsock.h> 需要 WS2_32.LIB
◎在VS2012中link WS2_32.lib
方法一: Configuration properties - Linker - Input - Additional Dependencies.
方法二: #pragma comment(lib, "ws2_32.lib")
資料來源:
------------------------
1. http://bbs.csdn.net/topics/40238982
2. http://social.msdn.microsoft.com/Forums/vstudio/en-US/cfefa4a5-1f1a-4987-8bc7-f3197cb5826c/how-to-link-ws232lib
沒有留言:
張貼留言