Complete.Org: Mailing Lists: Archives: freeciv-dev: September 2002:
[Freeciv-Dev] compile errors on bitvector code with Sun cc (PR#2046)
Home

[Freeciv-Dev] compile errors on bitvector code with Sun cc (PR#2046)

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Cc: bugs@xxxxxxxxxxxxxxxxxxx
Subject: [Freeciv-Dev] compile errors on bitvector code with Sun cc (PR#2046)
From: Reinier Post <rp@xxxxxxxxxx>
Date: Wed, 11 Sep 2002 10:25:03 -0700 (PDT)

  Dear Per,

The Sep 10 snapshot fails to compile with with Sun's (ANSI) cc:

cc -DHAVE_CONFIG_H -I. -I. -I.. -I./../common -I./../server -I../intl    -g -c 
`test -f advattitude.c || echo './'`advattitude.c
"./../common/unittype.h", line 151: warning: syntax error:  empty declaration
"./../common/unittype.h", line 152: warning: syntax error:  empty declaration
"./aitools.h", line 30: invalid token in #define macro parameters: ...
"./aitools.h", line 42: invalid token in #define macro parameters: ...
"./aitools.h", line 54: invalid token in #define macro parameters: ...
cc: acomp failed for advattitude.c
make[3]: *** [advattitude.o] Error 2
make[3]: Leaving directory 
`/scratch/rp/freeciv/code/compiled/latest/freeciv-cvs-Sep-10+none/ai'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory 
`/scratch/rp/freeciv/code/compiled/latest/freeciv-cvs-Sep-10+none'
make[1]: *** [all] Error 2
make[1]: Leaving directory 
`/scratch/rp/freeciv/code/compiled/latest/freeciv-cvs-Sep-10+none'
make: *** 
[/home/rp/.freeciv/code/compiled/latest/freeciv-cvs-Sep-10+none/server/civserver]
 Error 2

The lines in unittype.h invoke the BV_DEFINE macro; I have no idea what goes
wrong there.  The problem in aitools.h is a define that contains "..." in the
argument list, which is not a construct I can find anywhere.

-- 
Reinier



[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] compile errors on bitvector code with Sun cc (PR#2046), Reinier Post <=