News:

Simutrans Sites
Know our official sites. Find tools and resources for Simutrans.

[bug 3046] Cannot compile player/ai_goods.cc on gcc 4.3.4

Started by sanna, January 21, 2010, 08:20:37 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

sanna

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 class-key must be used when declaring a friend
player/ai_goods.h:87: error: friend declaration does not name a class 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

Dwachs

Thanks, should be fixed in 3047. I develop with MSVC, which did not complain.

sanna