how do I link the bare minimum of the Qt library to my project/exe?
I don't want to use anything from Qt except the networking library, and even then (if possible) the needed part of it only.
How do I do that?
EDIT: What I want from Qt is only the networking library, and if possible, only the TCP part. (this: http://doc.qt.io/qt-5/qtnetwork-module.html shows lots of unnecessary stuff)
答案 0 :(得分:3)
如果您只需要一个可移植的TCP套接字库,那么您就不需要Qt,有很多小型便携式库可以完成这项工作。
Qt不是一个库,它是一个应用程序开发框架,它由许多库和工具组成,而且很多都依赖于其他库。即使您只想使用Qt5Network,它仍然需要Qt5Core,Qt工具链,MOC以及所有使用它的Qt惯用语。