URL:
  <http://gna.org/bugs/?13269>

                 Summary: Compilation problems on Slackware 11.0
                 Project: Battle for Wesnoth
            Submitted by: neologic
            Submitted on: Friday 03/27/2009 at 07:59
                Category: Bug
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group:  None of the others
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 1.6a
        Operating System: Linux 

    _______________________________________________________

Details:

Hello, 
I've downloaded Westnoth 1.6a source code. I tried to compile it but there
was an error while compiling unit_id.cpp. There was a problem with casting -1
value to size_t type in fake_id_ variable.

I've googled a little bit about size_t data type and I've found, that this is
unsigned type. Anyway I've  also found, that size_t is the same type as int. 

So, I've changed data types of next_id_ and fake_id_ to int in unit_id.hpp.

After this changes game compiled correctly and now I'm able to play :)

I'm not a programmer. So here is my question. Did I broke something ?:) 

sdl-config --version 
1.2.11
gcc --version
gcc (GCC) 3.4.6


Best regards 
Wojtek






    _______________________________________________________

Reply to this item at:

  <http://gna.org/bugs/?13269>

_______________________________________________
  Message sent via/by Gna!
  http://gna.org/


_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs

Reply via email to