QT and Crypto ++ with / MTd

I have two QT 5.5 projects with the 32-bit MSVC2013 compiler. The first is the Qt console application and uses crypto ++ and two in the profile:

QMAKE_CXXFLAGS_RELEASE += /MT
QMAKE_CXXFLAGS_DEBUG += /MTd

Secondly, this is a Qt widget application in which a dialog based graphical interface is built. Individually, each of them starts successfully, but also individually the GUI project with the same additions in the pro file as above gives the same old error:

qtmain.lib (qtmain_win.obj): - 1: error: LNK2038: mismatch found for "RuntimeLibrary": value "MD_DynamicRelease" does not match the value 'MT_StaticRelease' in main.obj

Is there a way to somehow combine these two projects? Also explain the meaning and difference between:

multi-threaded DLL(/MD)
multi-threaded (/MT)

What is the relationship between dynamic libraries and / MD, as well as between static and / MT?

+4
1
qtmain.lib(qtmain_win.obj):-1: error: LNK2038: mismatch detected for 'RuntimeLibrary':
value 'MD_DynamicRelease' doesn't match value 'MT_StaticRelease' in main.obj

C/++.

Crypto ++ : Cryptlib, Cryptest, Cryptdll Dlltest. , Cryptlib, Cryptest DLL-, Cryptdll Dlltest. , , .

-DLL- Cryptlib, . . . Crypto ++ Microsoft Visual ++. , - .

- DLL_Output . , DLL. DLL - FIPS 140-2. , , .

DLL_Output, Configuration Manager DLL ( , DLL-Import Release). Cryptdll Dlltest, .

+1

Source: https://habr.com/ru/post/1612546/


All Articles