[Qt-creator] CONFIG variables not as expected

André Hartmann andre.hartmann at iseg-hv.de
Thu Jan 2 07:59:15 CET 2020


Hi Bob,

>>> but detecting the compiler version is more awkward.
>> Why?
> 
> I can do
>     win32-msvc2015 { Do stuff... }
> but not
>     win32-msvc2017 { Do stuff... }
> 
> The only way I see to tell that it's 2017 is to check if it isn't any other
> MS compiler that I use.  Perhaps it's silly, but I try to maintain
> compatibility with 2013, 2015 and 2017 and Qt back to 5.9x.

In your first mail you talked about MinGW, now MSVC, so I still don't 
get the full picture of your problem. You will need to provide some more 
information.

> I use some 3rd party libraries that are built separately and it seems
> safest to use libraries built with a matching compiler. 

For C++ libraries, that's correct, you cannot mix MinGW and MSVC. For 
libraries with pure C interface, it does not matter.

Note that MSVC2015 and 2017 are binary compatible, so you can exchange libs.

Regards, André

> Less important, I include compiler version in my About screen and use > DEFINES to get that info into the code.

> _______________________________________________
> Qt-creator mailing list
> Qt-creator at qt-project.org
> https://lists.qt-project.org/listinfo/qt-creator
> 


More information about the Qt-creator mailing list