Hi there,

I've have tried to check out the source from git and build Pingus, but run into a problem using GCC 4.7.0 and its support for C++ 11.

The problem is related to changes in the preprocessor as I have understood from this thread:

http://groups.google.com/group/comp.std.c++/browse_thread/thread/f670f831bf293754

Anyway, it is very simple to fix and I have attached a patch that does that. Hope you might find it useful, I can now build and run Pingus with GCC 4.7.0.

Cheers,
Kasper
diff --git a/src/pingus/pingus_main.cpp b/src/pingus/pingus_main.cpp
index 9543bb1..3658d9d 100644
--- a/src/pingus/pingus_main.cpp
+++ b/src/pingus/pingus_main.cpp
@@ -490,7 +490,7 @@ PingusMain::init_path_finder()
 void
 PingusMain::print_greeting_message()
 {
-  std::string greeting = "Welcome to Pingus "VERSION;
+  std::string greeting = "Welcome to Pingus " VERSION;
   greeting += "!";
   std::cout <<  greeting << std::endl;
   for (unsigned int i = 0; i < greeting.length(); ++i)
diff --git a/src/pingus/screens/pingus_menu.cpp b/src/pingus/screens/pingus_menu.cpp
index abf9b35..19a3d04 100644
--- a/src/pingus/screens/pingus_menu.cpp
+++ b/src/pingus/screens/pingus_menu.cpp
@@ -153,7 +153,7 @@ PingusMenu::draw_background(DrawingContext& gc)
                          gc.get_height()/2 - 280));
 
   gc.print_left(Fonts::pingus_small, Vector2i(gc.get_width()/2 - 400 + 25, gc.get_height()-140),
-                "Pingus "VERSION" - Copyright (C) 1998-2011 Ingo Ruhnke <grum...@gmail.com>\n"
+                "Pingus " VERSION " - Copyright (C) 1998-2011 Ingo Ruhnke <grum...@gmail.com>\n"
                 "See the file AUTHORS for a complete list of contributors.\n"
                 "Pingus comes with ABSOLUTELY NO WARRANTY. This is free software, and you are\n"
                 "welcome to redistribute it under certain conditions; see the file COPYING for details.\n");
_______________________________________________
Pingus-Devel mailing list
Pingus-Devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/pingus-devel

Reply via email to