[Qt-creator] GCC 4.32 for Windows
Andre Poenitz
andre.poenitz at mathematik.tu-chemnitz.de
Mon Jan 12 21:52:07 CET 2009
Yves wrote earlier:
> > Try #include <unordered_map>
> > ...yes this is new standard C++... works on 4.3, not on 3.4.
On Mon, Jan 12, 2009 at 02:53:08PM +0100, Patrick Scheller wrote:
> Thanks Yves, that is exactly my point: GCC 4.3 sticks much more to the
> C++ Standard than 3.4. [...]
I cannot resist the urge for clarification:
1. <unordered_map> is _not_ part of any existing C++ standard, i.e.
ISO/IEC 14882 -- neither the original 1998 nor the 2003 "update". I do
understand, though, that it is part of ISO/IEC TR 19768 (a.k.a. TR1) and
very likely part of the _next_ Standard. Still, TR1 calls itself
explicitly "non normative".
2. g++ 4.3 will _not_ compile <unordered_map> out-of-the-box. It will do so
only if selecting an extension using -std=c++0x or -std=gnu++0x, i.e. by
explicitly selecting a _non-conforming_ behaviour. [That's actually a
very nice behaviour, other compilers force their non-standard behaviour
by default upon the user and even claim that the standard behaviour is
deprecated ;-}]
3. Qt Creator will just use g++ 4.3 and be fine with it if it is
correctly set up on your system. In fact, a significant portion of
the developers is using it without problems.
So it is not like "Qt Creator does not play nice with Standard compliant
compilers" or whatever else might be read from the mails in this thread.
Qt Creator will work with anything called "gcc" in the path if it
behaves reasonably similar to a C++ compiler (and accepts gcc command
line options ;-) ) so there's no need to "switch compiler suites" from
within. Just install whatever you are happy with and let Creator (or
qmake/make in this case) pick it up. If _that_ does not work, file a
bug report...
Regards,
Andre'
More information about the Qt-creator-old
mailing list