tags 461727 +patch
thanks

Hi,

I'm attaching a patch to fix this problem.  Please take into account that the   
                    
gcc 4.3 issues are now release critical bugs as gcc 4.3 is the default compiler 
                    
in some architectures, so if you don't upload a fix soon, it will probably be   
                    
NMUed.

Thanks,
-- 
" Software is like sex it's better when it's free. " -- (Linux Slogan)
Saludos /\/\ /\ >< `/
#DPATCHLEVEL=1
--- mecab-0.96.orig/src/param.h	2007-03-11 10:34:16.000000000 -0300
+++ mecab-0.96/src/param.h	2008-04-06 00:46:43.000000000 -0300
@@ -14,6 +14,16 @@
 #include "scoped_ptr.h"
 #include "common.h"
 
+#ifndef GCC_VERSION
+#define GCC_VERSION (__GNUC__ * 100 + __GNUC_MINOR__)
+#endif
+
+#if GCC_VERSION >= 403
+# define STATIC
+#else
+# define STATIC static
+#endif
+
 namespace MeCab {
 
   template <class Target, class Source>
@@ -29,7 +39,7 @@
   }
 
   template <>
-  static std::string lexical_cast<std::string, std::string>(std::string arg) {
+  STATIC std::string lexical_cast<std::string, std::string>(std::string arg) {
     return arg;
   }
 

Reply via email to