From:
[email protected]
Package: astyle
Severity: normal
Tags: patch
When building 'astyle' with gcc-3.4 I get the following error:
g++ -Wall -Wno-sign-compare -O2 -c astyle_main.cpp
astyle_main.cpp: In function `bool parseOptions(astyle::ASFormatter&, const ITER&, const ITER&, const std::string&)':
astyle_main.cpp:178: error: there are no arguments to `parseOption' that depend on a template parameter, so a declaration of `parseOption' must be available
astyle_main.cpp:178: error: (if you use `-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
astyle_main.cpp:183: error: there are no arguments to `parseOption' that depend on a template parameter, so a declaration of `parseOption' must be available
astyle_main.cpp:188: error: there are no arguments to `parseOption' that depend on a template parameter, so a declaration of `parseOption' must be available
make[1]: *** [astyle_main.o] Error 1
make[1]: Leaving directory `/astyle-1.15.3'
With the attached patch 'astyle' can be compiled using gcc-3.4.
Regards
Andreas Jochens
diff -urN ../tmp-orig/astyle-1.15.3/astyle_main.cpp ./astyle_main.cpp
--- ../tmp-orig/astyle-1.15.3/astyle_main.cpp 2002-03-07 17:22:30.000000000 +0100
+++ ./astyle_main.cpp 2004-08-18 18:21:40.575340993 +0200
@@ -53,6 +53,7 @@
const string _version = "1.15.3";
+bool parseOption(ASFormatter &formatter, const string &arg, const string &errorInfo);
class ASStreamIterator :
public ASSourceIterator
--
To UNSUBSCRIBE, email to
[email protected]
with a subject of "unsubscribe". Trouble? Contact
[email protected]
--- SoupGate-Win32 v1.05
* Origin: you cannot sedate... all the things you hate (1:229/2)