[Interest] Use Qt release DLLs while debugging application

Henry Skoglund fromqt at tungware.se
Wed Apr 25 07:42:29 CEST 2018


On 2018-04-25 07:35, Rainer Wiesenfarth wrote:
> *You can, if* you are interested in the debug code of your application 
> only, but not in the one of Qt and the C runtime.
> 
> If you use the release version of Qt, you have to make sure that you 
> link with the same runtime, i.e. you use /MD (Mulit-threaded DLL) for 
> your debug build instead of /MDd (Multi-threaded Debug DLL).
> 
> ​Note: You have to make sure that any other library you link against is 
> using the same C runtime​
> Note: I have no idea how to configure this using QMake (we use 
> hand-crafted .vcxproj and .props)
> 
> ​Cheers, Rainer​

Morning, just want to add, qDebug() output works fine in Release builds 
also. I.e. just printf()-style debugging but sometimes that's all you need.

Rgrds Henry




More information about the Interest mailing list