The International Simutrans Forum

Development => Patches & Projects => Incorporated Patches and Solved Bug Reports => Topic started by: sanna on January 21, 2010, 08:20:37 am

Title: [bug 3046] Cannot compile player/ai_goods.cc on gcc 4.3.4
Post by: sanna on January 21, 2010, 08:20:37 am
Trying to build rev. 3046 I get the following error messages:
Code: [Select]
===> 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
Title: Re: [bug 3046] Cannot compile player/ai_goods.cc on gcc 4.3.4
Post by: Dwachs on January 21, 2010, 09:25:46 am
Thanks, should be fixed in 3047. I develop with MSVC, which did not complain.
Title: Re: [bug 3046] Cannot compile player/ai_goods.cc on gcc 4.3.4
Post by: sanna on January 21, 2010, 12:30:24 pm
Will test again as soon as I can find a route to tron.homeunix.org....