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.
我已经设法使用 MSYS 在 Windows 上编译 PortAudio。此过程创建了 2 个文件:libportaudio-2.dll 和 libportaudio.dll.a
现在我想链接 QtCreator 中的库,但我不能,因为它需要一个 .lib 文件。
如果有人有在 Windows 下使用 MSYS 编译和使用库的经验,我们将不胜感激。
(注意:它们是使用 MindGW 编译器编译的。我不想用 Microsoft Visual Studio 编译它,从那时起我将不得不编译 QT)
解决你的问题很简单。这里我报告一个文件的例子。需要使用的专业人士:
QT += core QT -= gui TARGET = mioTestAudio CONFIG += console CONFIG -= app_bundle TEMPLATE = app LIBS += -lportaudio.dll <-------- this is the part you are interested SOURCES += main.cpp