On quarta-feira, 28 de novembro de 2012 10.56.38, Michael Sué wrote: > Then I entered nmake and the compilation stopped after some seconds at the > line > > c:\qt\5.0.0\qtbase\include\qtcore\../../src/corelib/tools/qdatetime.h(104) : > error C2589: '(' : illegal token on right side of '::'
That's because windows.h defines "min" and "max" as a macro. That behaviour can be turned off by defining NOMINMAX before including windows.h. The thing is, we do it in qt_windows.h. So the question is why that didn't work for you. Is it because: a) windows.h was included before NOMINMAX was defined in qt_windows.h? b) your windows.h does not respect NOMINMAX c) "min" and "max" were defined elsewhere -- Thiago Macieira - thiago.macieira (AT) intel.com Software Architect - Intel Open Source Technology Center
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest