[Qt-creator] [patch] typeid requires #include <typeinfo>
bill.king at nokia.com
bill.king at nokia.com
Tue May 18 11:47:47 CEST 2010
As per Andre's email:
This has been fixed in 56c5c8266a94fe5740839d71da59c6139e0c0c0f
but make take a few more hours to show up in the public repo. Until
then you can just add the #include or remove the offending line.
-----Original Message-----
From: qt-creator-bounces at trolltech.com [mailto:qt-creator-bounces at trolltech.com] On Behalf Of ext Mark Brand
Sent: Monday, May 17, 2010 7:46 PM
To: qt-creator at trolltech.com
Subject: [Qt-creator] [patch] typeid requires #include <typeinfo>
Building the lastest qt-creator master branch fails for me on opensuse
11.2:
qt-creator/src/plugins/cpptools/cppcodecompletion.cpp:1100: error: must
#include <typeinfo> before using typeid
make[3]: *** [.obj/release-shared/cppcodecompletion.o] Error 1
This patch fixes it:
diff --git a/src/plugins/cpptools/cppcodecompletion.cpp
b/src/plugins/cpptools/cppcodecompletion.cpp
index 30d7db1..d81d769 100644
--- a/src/plugins/cpptools/cppcodecompletion.cpp
+++ b/src/plugins/cpptools/cppcodecompletion.cpp
@@ -44,6 +44,7 @@
#include <SymbolVisitor.h>
#include <Scope.h>
#include <TranslationUnit.h>
+#include <typeinfo>
#include <cplusplus/ResolveExpression.h>
#include <cplusplus/DeprecatedLookupContext.h>
_______________________________________________
Qt-creator mailing list
Qt-creator at trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator
More information about the Qt-creator-old
mailing list