Qt 6.11 is out! See what's new in the release
blog
Compilation error in qdatetime
General and Desktop
2
Posts
2
Posters
1.4k
Views
1
Watching
-
Hi
I amusing Qt5 with Visual Studio and one of my projects is giving the following error
@
c:\qt\qt5.1.1\5.1.1\msvc2012\include\qtcore\qdatetime.h(121): error C2589: '(' : illegal token on right side of '::'
1>c:\qt\qt5.1.1\5.1.1\msvc2012\include\qtcore\qdatetime.h(121): error C2059: syntax error : '::'
1> moc_EventSimulator.cpp
@I can get a successful compilation by adding 'NOMINMAX' to the list of pre processor macros
I would be grateful if someone could explain why this error occurs
Thanks
-
Hi,
Do you have any functions that are named min/max ?