Follow-up Comment #2, patch #2418 (project freeciv):

This change appears to have broken compilation of the Qt client on my system.
If I either disable that client or revert the change, everything builds fine.

I'm guessing that it's to do with the different struct/typedef namespace
rules in C and C++ -- we now have the typedef "tech_vector" (tech.h) and the
struct "tech_vector" (ai.h) -- but I confess I don't know the rules in detail

make[3]: Entering directory `/home/jtn/src/freeciv/git/client/gui-qt'
  CXX    chatline.lo
In file included from ../../common/requirements.h:23,
                 from ../../common/base.h:25,
                 from ../../common/unit.h:25,
                 from ../../common/unitlist.h:22,
                 from ./../climisc.h:25,
                 from chatline.cpp:19:
../../common/tech.h:145: error: conflicting declaration ‘typedef struct
tech_vector tech_vector’
../../common/ai.h:38: error: ‘struct tech_vector’ has a previous
declaration as ‘struct tech_vector’
make[3]: *** [chatline.lo] Error 1
make[3]: Leaving directory `/home/jtn/src/freeciv/git/client/gui-qt'


Reply to this item at:


  Message sent via/by Gna!

Freeciv-dev mailing list

Reply via email to