Complete.Org: Mailing Lists: Archives: freeciv-dev: October 2004:
[Freeciv-Dev] (PR#10614) Compilation error
Home

[Freeciv-Dev] (PR#10614) Compilation error

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: undisclosed-recipients: ;
Subject: [Freeciv-Dev] (PR#10614) Compilation error
From: "Alexander Sayenko" <sayenko@xxxxxxxxx>
Date: Mon, 18 Oct 2004 23:54:07 -0700
Reply-to: rt@xxxxxxxxxxx

<URL: http://rt.freeciv.org/Ticket/Display.html?id=10614 >

Hi

OS: Linux (RedHat)
Compiler: gcc-2.96
Files affected: client/gui-gtk-2.0/citydlg.c client/gui-gtk-2.0/diaogs.c
client/gui-gtk-2.0/mapview.c

This problem appears while compiling freeciv 2.0.0 beta1 with GTK2 client.
The compiler begins to complain that there is an error in the initialization
of the structure "canvas". It seems that older versions of gcc does not
handle properly the following initialization:

struct canvas store = {.type = ...., .v.pixcomm = ..};

So, changing this piece of code into the less elegant :), but more reliable
construct solves the problem.

struct canvas store;

store.type = ....;
store.v.pixcomm = ...;

Patch in the attachment corrects it.

P.S. I have not checked other GUIs, but there could be a similar problem
there. At least, GTK client compiles without problems.

Sincerely,
Sayenko Alexander
PhD student
Telecommunication laboratory, MIT department
University of Jyvaskyla, Finland

Attachment: freeciv-2.0.0-syntax.patch
Description: Binary data


[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] (PR#10614) Compilation error, Alexander Sayenko <=