[Interest] Compiling Programs with C++11 with Qt5, which was compiled without C++11 flag. Possible?

Sze Howe Koh szehowe.koh at gmail.com
Thu Aug 15 10:07:33 CEST 2013

On 15 August 2013 12:53, Thiago Macieira <thiago.macieira at intel.com> wrote:
> However, the error about "complex" makes me thing it's actually the capital
> letter I, defined in complex.h.
> Since C99 requires that definition (7.3.1p4), looks like we should simply
> change Qt.

I believe "I" is only defined in C99, but not C++ (well, at least my
MSVC2010 headers don't have it)

> the problem is not those patches. It's that he #included
> <complex.h> before <qobject.h>

It turns out that the problem is he defined "I" in one of his own
headers before including qobject.h:


More information about the Interest mailing list