error LNK2001: unresolved external symbol __imp__InternetReadFile@16

发布于 2020-05-05  56 次阅读


问题描述:

error LNK2001: unresolved external symbol __imp__InternetReadFile@16

error LNK2001: unresolved external symbol __imp__InternetReadFile@16

error LNK2001: unresolved external symbol __imp__InternetOpenUrlA@24

error LNK2001: unresolved external symbol __imp__InternetOpenUrlA@24

error LNK2001: unresolved external symbol __imp__InternetOpenA@20

error LNK2001: unresolved external symbol __imp__InternetOpenA@20

error LNK2001: unresolved external symbol __imp__InternetCloseHandle@4

解决方法:

#pragma comment(lib, “wininet.lib”)


一沙一世界,一花一天堂。君掌盛无边,刹那成永恒。