C++Qt development – Qtsocket programming error: undefined reference to `_imp__WSAStartup Solution: in the pro file of the project, Add: LIBS += -lpthread libwsock32 libws2_32