[SOLVED] Qt5 + VS2010 QDateTime => not enough actual parameters for macro 'min' & 'max'
-
Thanks for help Laszlo! Defining @DEFINES += NOMINMAX@ in pro file helped me.
-
sdolard: the problem is that, it does more than what you need, so not compact enough. :)
More importantly, you need to find and maintain the right place for the include. If you do it in the build system, it always works.
Also, even though qt_windows.h is installed publicly, you could include anytime. However, if you wanna be nice, you would use qt win ifdefs around just in case, but then it is getting uglier. :)
But yes, provided those drawbacks are not real problems, that also works.
-
This thread helped me out with this issue. THANK YOU.
-
Hi,
I have the same problem, but without an include of windows.h. So I can not enter a define before it and including
DEFINES += NOMINMAX
in the pro-file did'nt worked either.
Any more ideas? -
Hi,
since I started the project I had to reinstall windows and so qt creator. Originaly i used mingw. Now I also installed mingw, but somehow the installation was not compleat and qt creator used msvc instead. After swiching back to mingw I got rid of the error. So it's solved for me, but others might have the same problem.
Dimitri
-
#define NOMINMAX before including windows.h header. This is only way at the moment...
@AcerExtensa said:
#define NOMINMAX before including windows.h header. This is only way at the moment...
This worked to me for Qt5.5 VS2010