[Interest] compilation error in qdatetime

Thiago Macieira thiago.macieira at intel.com
Fri Nov 8 22:44:26 CET 2013

On sexta-feira, 8 de novembro de 2013 17:03:32, Graham Labdon wrote:
> I have defined a macro named min in my code!

You probably meant "I have *not* defined [...]"

I understand. But you included a header that does define one: windows.h.

Stop doing that. windows.h has a facility to ask it not to define dangerous 
macros. You should use it.

You should also only include windows.h in .cpp sources, never in headers, and 
always as the last thing you include (similarly for X11/Xlib.h).
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/20131108/19fd0dd6/attachment.sig>

More information about the Interest mailing list