error LNK2001: unresolved external symbol
解决办法:#pragma comment(lib,"mpr.lib")
----------------------------------------------------------------------------------------------------------
error LNK2001: unresolved external symbol
解决办法:#pragma comment( lib, "shlwapi.lib")
----------------------------------------------------------------------------------------------------------
error LNK2001: unresolved external symbol
解决办法:
#pragma comment(lib,"kernel32.lib")
#pragma comment( lib, "advapi32.lib")
----------------------------------------------------------------------------------------------------------
error LNK2001: unresolved external symbol
解决办法:#pragma comment( lib, "user32.lib")
----------------------------------------------------------------------------------------------------------
error LNK2001: unresolved external symbol __imp__WSACleanup@ error LNK2001: unresolved external symbol
解决办法:
#pragma comment( lib, "gdi32.lib")
#pragma comment( lib, "netapi32.lib")
#pragma comment( lib, "ws2_32.lib")
----------------------------------------------------------------------------------------------------------
error LNK2001: unresolved external symbol
解决办法:#pragma comment( lib, "Psapi.Lib")
----------------------------------------------------------------------------------------------------------
error LNK2001: unresolved external symbol _pcap_open
解决办法:
#pragma comment( lib, "Packet.lib")
#pragma comment( lib, "wpcap.lib")
----------------------------------------------------------------------------------------------------------
主要是有些lib没有引用才出现LNK2001的问题,加上就行