Starting with GCC 4.4.x, there are no implicit header declarations
anymore. This leads to this, and simliar, errors with g++ due to
<cstdio> not being explicitly included:

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

GCC says afterwards that you can add the `-fpermissive' option to work
around these errors, but declaring headers never hurt.

Include <cstdio> at two places where they are needed.
---
 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

Reply via email to