INTMAX_MAX undefined?
-
@davecotter said in INTMAX_MAX undefined?:
it worked before upgrading Qt to the latest
From what version were you upgrading from? chrono was added in Qt 5.9
What update version of MSVC 2017 are you using?
-
worked in 5.9.1 and in 5.10.0. now on 5.11.1 which fails
-
can you also show the code that triggers that error ?
scroll up to my previous reply which starts: <<the file "chrono">>
Can you trigger it with a minimal application ?
no, this is a monolithic application with a required dependency on CFLite
-
It was not completely clear whether including std::chrono's was enough to trigger that or if you had some specific part of your code using it that would be.
We understood that you have a monolithic application. The question is; can you start from one of Qt's default project and use std's chrono in there to check whether it's working at all. If it is, then add CFLite, etc.
As for why Clang on Windows, Clang is used for the code model.
-
i've updated to the latest MSDEV 2017 (community) and the latest Qt SDK (5.11.2), doesn't help.
QMenu.h ends up including chrono, so, yes, default Qt apps (that have menus) definitely work with chrono / ratio (the file <ratio> is where the problem is revealed). Adding CFLite is actually a lot of work. :( I realize it's a fair test to ask for, but i'm hoping to avoid taking the time to make that test? i'm trying more things first...
-
minimal project posted here
note this assumes you have python 2.7 installed. you can get the installer here.
after you download the zip file above, and expand, go here:
.../CFTest/project/qt/CFTest/CFTest_win.pro
open thatconfigure as seen in the screen shots below. the full line for cftest run exec is this:
%{sourceDir}..\build\win_64_%{CurrentBuild:Type}%{CurrentBuild:Name}.app\Contents\Windows%{CurrentBuild:Name}.exe
-
@VRonin made the correct suggestion, to define this:
__STDC_LIMIT_MACROS
The other problem was that i had defined "round()" as a macro somewhere else
Thanks everyone!