error LNK2001

error LNK2001: unresolved external symbol __imp__WSACleanup@0:

等等等等

没有在setting -link-中加入wsock32.lib

连接错误->结果....

main.obj : error LNK2001: unresolved external symbol __imp__WSASocketA@24

Debug/forFree.exe : fatal error LNK1120: 1 unresolved externals

加入ws2_32.lib啦

成功。猥琐地弄SYN FLOOD



忘啦

#pragma comment( lib, "Wsock32.lib" )

#pragma comment(lib, "ws2_32.lib")

你可能感兴趣的:(c,socket,职场,休闲)