Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
大家好,我在 Qt 应用程序中使用了一些第三方库, 但我喜欢 *.pro 文件和 QMAKE 作为默认值。 我如何告诉 qmake(在 *.pro 文件中写什么)在我的 Visual Studio 项目 中包含包含 lib 目录中的 windows ws2_32 套接字库?
尝试添加QMAKE_LIBS += ws2_32.lib您的 .pro 文件。
QMAKE_LIBS += ws2_32.lib