[Interest] compilation error in qdatetime

Graham Labdon Graham.Labdon at avalonsciences.com
Fri Nov 8 17:36:14 CET 2013


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


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20131108/62448598/attachment.html>


More information about the Interest mailing list