I want to link some static .libs with my QT Creator project
I have tried using QMAKE_CXXFLAGS_DEBUG flag but I still get this error in QT :-
qtmaind.lib(qtmain_win.obj):-1: error: LNK2038: mismatch detected for 'RuntimeLibrary': value 'MDd_DynamicDebug' doesn't match value 'MTd_StaticDebug' in main.obj
Hi and welcome to devnet forum
You need to give more details on OS and compiler versions.
Also details of the actual static library you like to link (e.g. possible special compilation flags for the static library).
This post is deleted!
@koahnig thanks for the warm welcome.
I am using Win 10 with QT 5.10
It is a custom made static library on Visual Studio. There aren't any special compilation flags which I am using to build the static library.
@koahnig Correction : I am using Visual C++ 2015 Compiler
Hi and welcome to devnet,
From the looks of it your custom library is linked against the static Visual Studio runtime so it clashes with Qt that is built agains the dynamic runtime.
To make thing simple, link your static libraries to the dynamic runtime and you should be good to go.
@SGaist Could you tell me more about how to do that? I just got .lib files for the libraries.
Do you mean change the runtime type selection when building your custom libraries in Visual Studio ?