Complete.Org: Mailing Lists: Archives: freeciv-dev: January 2005:
[Freeciv-Dev] (PR#11794) Compile problem freeciv-2.0.0-beta6 on IRIX 6.5
Home

[Freeciv-Dev] (PR#11794) Compile problem freeciv-2.0.0-beta6 on IRIX 6.5

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: behrens@xxxxxxxxxx
Subject: [Freeciv-Dev] (PR#11794) Compile problem freeciv-2.0.0-beta6 on IRIX 6.5.26 c99 problem
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 6 Jan 2005 12:35:11 -0800
Reply-to: bugs@xxxxxxxxxxx

<URL: http://bugs.freeciv.org/Ticket/Display.html?id=11794 >

> [behrens@xxxxxxxxxx - Tue Jan 04 22:06:08 2005]:
> 
> Hello, i have problem compiling freeciv-2.0.0-beta6 on IRIX 6.5.25
with the
> nativ mips cc compilier. It looks like that the c99 compiler doesnt
> understand ... :|
> 
> 
> c99 -DHAVE_CONFIG_H -I. -I. -I../..  -I. -I./.. -I../../common/aicore
-I./..
> /include -I../../utility -I../../common -I../../intl -I./../gui-gtk
-I/usr/n
> ekoware/include/gtk-2.0 -I/usr/nekoware/lib/gtk-2.0/include
-I/usr/nekoware/
> include/atk-1.0 -I/usr/nekoware/include/pango-1.0
-I/usr/nekoware/include -I
> /usr/nekoware/include/freetype2 -I/usr/nekoware/include/glib-2.0
-I/usr/neko
> ware/lib/glib-2.0/include   -I/usr/nekoware/include  -O3 -mips4
-I/usr/nekow
> are/include -OPT:Olimit=0:roundoff=3  -TARG:platform=IP27:proc=r10000 -c
> cma_fec.c
> cc-1020 c99: ERROR File = cma_fec.c, Line = 378
>   The identifier "minimal_surplus" is undefined.
> 
>        minimal_surplus: {0, 0, 0, 0, 0, 0},
>        ^

The code is this:

   { /* max food */
     minimal_surplus: {0, 0, 0, 0, 0, 0},
     require_happy: FALSE,
     allow_disorder: FALSE,
     allow_specialists: TRUE,
     factor: {10, 1, 1, 1, 1, 1},
     happy_factor: 0
   }

from my understanding this is not C99 but is a pre-C99 gcc extension for
handling per-field initialization.  I think it's "supposed" to be

  .minimal_surplus: {0, 0, 0, 0, 0, 0},

but I'm not quite sure.  I also remember there have been reported
problems with using the real C99 method - we need a configure check for it.

-jason




[Prev in Thread] Current Thread [Next in Thread]