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). -
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). -
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). -
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.
-
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.
-
Do you mean change the runtime type selection when building your custom libraries in Visual Studio ?