How to create a .lib static library using QtCreator with the mingw compiler
General and Desktop
6
Posts
3
Posters
10.6k
Views
1
Watching
-
I am trying to create a static library .lib file. With this .pro file, I get only a .a file as the result.
QT -= gui
TARGET = mystaticLib
VERSION = 0.1
TEMPLATE = lib
CONFIG += staticlib
SOURCES +=
staticlibsource.cpp
HEADERS +=
staticlibsource.hWhat am I doing wrong? Is it possible with this configuration?
-
The application developer states that my library needs to have been build with the msvc compiler, not the mingw compiler. That is what is meant by the need to generate a .lib static library. I guess I need to somehow add the msvc compler to the tool chain or rebuild qt with the msvc compiler.