Complete.Org: Mailing Lists: Archives: freeciv-dev: June 2004:
[Freeciv-Dev] (PR#8941) gcc 2.95 problem with .v.pixmap initializer
Home

[Freeciv-Dev] (PR#8941) gcc 2.95 problem with .v.pixmap initializer

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: undisclosed-recipients: ;
Subject: [Freeciv-Dev] (PR#8941) gcc 2.95 problem with .v.pixmap initializer
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 9 Jun 2004 14:22:48 -0700
Reply-to: rt@xxxxxxxxxxx

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

   struct canvas store = {.type = CANVAS_PIXMAP
                          .v.pixmap = pixmap};

I'm guessing gcc 2.95 is not able to support this C structure.  We 
should either verify that it's C99 and add a configure check for it, or 
just dump it and use a manual initialization.


Note, there seems to be no problems with the .type or .v field.  The 
problem is with the .pixmap field.  This is a bit confusing.  I don't 
know if it's because it's a union or if structs would also give a problem.

jason



-------- Original Message --------
Subject: [Freeciv-Dev] can't compile CVS version
Date: Wed,  9 Jun 2004 14:23:44 -0400 (EDT)
From:  <ngnetzky@xxxxxxxxxx>
Reply-To: ngnetzky@xxxxxxxxxx
To: freeciv-dev@xxxxxxxxxxx


I'm new to this list and linux, so please bear with me. I'm tring to 
compile the June 8th CVS version so I can play around with the new AI 
features. Well everything in autogen and configure went ok. So I tried 
to make and make gave the following errors:

citydlg.c: In function `city_dialog_update_map':
citydlg.c:1379: unknown field `pixmap' specified in initializer
citydlg.c:1379: warning: missing braces around initializer
citydlg.c:1379: warning: (near initialization for `store.v')
make[4]: *** [citydlg.o] Error 1
make[4]: Leaving directory 
`/home/myhome/freeciv-cvs-Jun-08/client/gui-gtk-2.0'
make[3]: *** [all] Error 2
make[3]: Leaving directory 
`/home/myhome/freeciv-cvs-Jun-08/client/gui-gtk-2.0'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/myhome/freeciv-cvs-Jun-08/client'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/myhome/freeciv-cvs-Jun-08'
make: *** [all] Error 2

I wondering if somebody else out there can make sense out of this and 
help me compile this thing. Thanks in advance for any help you can give 
me on this matter.

Thanks,
ngnetzky




_______________________________________________
Join Excite! - http://www.excite.com
The most personalized portal on the Web!





[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] (PR#8941) gcc 2.95 problem with .v.pixmap initializer, Jason Short <=