URL:
<http://gna.org/bugs/?7627>
Summary: [patch included] Fails to compile on g++ 3.3.4 due
to 'static' in the wrong place
Project: Wormux
Submitted by: rbowes
Submitted on: Saturday 11/04/2006 at 16:45
Hidden: None
Category: compilation
Severity: 3 - Normal
Priority: 5 - Normal
Status: None
Assigned to: None
Originator Email:
Open/Closed: Open
Release: 0.8alpha1
_______________________________________________________
Details:
Here is the error message I get:
if g++ -DHAVE_CONFIG_H -I. -I. -I. -I/usr/include/SDL -D_REENTRANT
-DINSTALL_DATADIR=\"/usr/local/share/wormux\"
-DINSTALL_LOCALEDIR=\"/usr/local/share/locale\"
-DFONT_FILE=\"/usr/local/share/wormux/font/DejaVuSans.ttf\"
-DPACKAGE_VERSION=\"0.8alpha1\" -Werror -Wall -W -Wno-unused-parameter -O2
-I/usr/include/SDL -D_REENTRANT -I/usr/local/include/libxml++-2.6
-I/usr/local/include/libxml2 -I/usr/include/glibmm-2.4
-I/usr/lib/glibmm-2.4/include -I/usr/include/sigc++-2.0
-I/usr/lib/sigc++-2.0/include -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -MT body.o -MD -MP -MF ".deps/body.Tpo" -c -o
body.o `test -f 'character/body.cpp' || echo './'`character/body.cpp; \
then mv -f ".deps/body.Tpo" ".deps/body.Po"; else rm -f ".deps/body.Tpo";
exit 1; fi
In file included from tool/point.h:28,
from graphic/surface.h:29,
from graphic/spriteframe.h:25,
from graphic/sprite.h:30,
from tool/resource_manager.h:33,
from character/body_list.h:28,
from character/body.h:26,
from character/body.cpp:21:
tool/vector2.h:13: warning: `static' is not at beginning of declaration
make[3]: *** [body.o] Error 1
make[3]: Leaving directory `/home/ron/downloads/wormux-0.8alpha1/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/ron/downloads/wormux-0.8alpha1/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/ron/downloads/wormux-0.8alpha1/src'
make: *** [all-recursive] Error 1
And here is a patch that fixes it:
--- wormux-0.8alpha1/src/tool/vector2.h 2006-10-21 14:50:09.000000000 -0500
+++ wormux-0.8alpha1.fixed/src/tool/vector2.h 2006-11-04 10:34:21.000000000
-0600
@@ -10,7 +10,7 @@
template<class T> class Vector2
{
private:
- const static double EPS_ZERO = 0.05;
+ static const double EPS_ZERO = 0.05;
public:
T x, y;
Hope that helps,
Ron
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?7627>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Wormux-gna mailing list
[email protected]
https://mail.gna.org/listinfo/wormux-gna