[bug 3046] Cannot compile player/ai_goods.cc on gcc 4.3.4
Trying to build rev. 3046 I get the following error messages:
===> CXX player/ai_goods.cc
In file included from player/ai_goods.cc:6:
player/simplay.h:362: warning: unused parameter ‘flag’
In file included from player/ai_goods.cc:27:
player/ai_goods.h:87: error: a cl****-key must be used when declaring a friend
player/ai_goods.h:87: error: friend declaration does not name a cl**** or function
player/ai_goods.h: In member function ‘virtual void ai_goods_t::rdwr(loadsave_t*)’:
player/ai_goods.h:88: error: ‘fabrik_t* ai_goods_t::fabconnection_t::fab1’ is private
player/ai_goods.cc:1400: error: within this context
player/ai_goods.h:89: error: ‘fabrik_t* ai_goods_t::fabconnection_t::fab2’ is private
player/ai_goods.cc:1400: error: within this context
player/ai_goods.h:90: error: ‘const ware_besch_t* ai_goods_t::fabconnection_t::ware’ is private
player/ai_goods.cc:1400: error: within this context
player/ai_goods.h: In member function ‘virtual void ai_goods_t::notify_factory(spieler_t::notification_factory_t, const fabrik_t*)’:
player/ai_goods.h:88: error: ‘fabrik_t* ai_goods_t::fabconnection_t::fab1’ is private
player/ai_goods.cc:1514: error: within this context
player/ai_goods.h:89: error: ‘fabrik_t* ai_goods_t::fabconnection_t::fab2’ is private
player/ai_goods.cc:1514: error: within this context
make: *** [player/ai_goods.o] Fel 1
System: Debian/Squeeze, gcc (Debian 4.3.4-6) 4.3.4