Using .lib files in MinGW
Solved
General and Desktop
-
wrote on 14 Oct 2017, 18:20 last edited by
Hi!
I want link in my project some .lib files , but i use the MinGW compiler.
How can i setup a link with a .lib file using MinGW in qmake?
This is important to me since i dont want use Visual Studio and MinGW are being used for android compilation.Kind Regards.
-
wrote on 14 Oct 2017, 18:40 last edited by A Former User
Hi!
- MinGW wiki: Specify the libraries for the linker to use.
- qmake Manual: Adding Libraries to Projects
-
wrote on 14 Oct 2017, 21:03 last edited by
example to add to .pro file
win32-g++ is MinGW
# SDL2 library 2.0.5 INCLUDEPATH += $$PWD/thirdparty/SDL2/include macx:LIBS += -L$$PWD/thirdparty/SDL2/lib/MacOS -lSDL2 win32-g++:LIBS += -L$$PWD/thirdparty/SDL2/lib/Windows -lSDL2 linux-g++:LIBS += -L$$PWD/thirdparty/SDL2/lib/Linux -lSDL2
-
wrote on 15 Oct 2017, 01:28 last edited by
Thanks so Much!
1/4