QT link2019

pro文件添加

LIBS+=-lAdvapi32-lgdi32-luser32-lshell32

若是在VS环境:

需要加入库文件ws2_32.lib

可以在stdafx.h中增加这一句:#pragma comment(lib, "ws2_32.lib")

原文地址:https://www.cnblogs.com/bigbigtree/p/2804163.html