[Interest] Compilation of Qt5 beta2 stopped

Thiago Macieira thiago.macieira at intel.com
Wed Nov 28 20:31:58 CET 2012


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20121129/d0501b36/attachment.sig>


More information about the Interest mailing list