GCC's C++ frontend does not include default headers anymore, which leads to
errors in the build process such as:
parser/rpp/pp-internal.h: In function ‘void
rpp::_PP_internal::output_line(const std::string&, int, _OutputIterator)’:
parser/rpp/pp-internal.h:75: error: there are no arguments to ‘snprintf’ that
depend on a template parameter, so a declaration of ‘snprintf’ must be available
The solution is to not assume that these headers are included by default and
include them each time. In this case, #include <cstdio> in two files:
generator/parser/rpp/pp-internal.h and juic/javautils.cpp.
---
generator/parser/rpp/pp-internal.h | 1 +
juic/javautils.cpp | 1 +
2 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/generator/parser/rpp/pp-internal.h
b/generator/parser/rpp/pp-internal.h
index 80766c5..9f23223 100755
--- a/generator/parser/rpp/pp-internal.h
+++ b/generator/parser/rpp/pp-internal.h
@@ -46,6 +46,7 @@
#ifndef PP_INTERNAL_H
#define PP_INTERNAL_H
+#include <cstdio>
#include <algorithm>
namespace rpp {
diff --git a/juic/javautils.cpp b/juic/javautils.cpp
index aa45f48..b849f48 100755
--- a/juic/javautils.cpp
+++ b/juic/javautils.cpp
@@ -44,6 +44,7 @@
#include "javautils.h"
#include <QtCore/QHash>
+#include <cstdio>
QString javaFixString(const QString &str)
{
--
1.6.5.rc1
_______________________________________________
Qt-jambi-interest mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt-jambi-interest