The International Simutrans Forum

Development => Patches & Projects => Incorporated Patches and Solved Bug Reports => Topic started by: Andarix on February 14, 2020, 07:03:25 PM

Title: r8914 - compile error Linux 64 bit
Post by: Andarix on February 14, 2020, 07:03:25 PM
Code: [Select]
gui/vehiclelist_frame.cc: In constructor ‘vehiclelist_frame_t::vehiclelist_frame_t()’:
gui/vehiclelist_frame.cc:224:15: error: ‘waytype_t’ is not a class or namespace
  current_wt = waytype_t::any_wt;
               ^
gui/vehiclelist_frame.cc:246:26: error: ‘waytype_t’ is not a class or namespace
  tabs_to_wt[max_idx++] = waytype_t::any_wt;
                          ^
gui/vehiclelist_frame.cc:251:27: error: ‘waytype_t’ is not a class or namespace
   tabs_to_wt[max_idx++] = waytype_t::maglev_wt;
                           ^
gui/vehiclelist_frame.cc:255:27: error: ‘waytype_t’ is not a class or namespace
   tabs_to_wt[max_idx++] = waytype_t::monorail_wt;
                           ^
gui/vehiclelist_frame.cc:259:27: error: ‘waytype_t’ is not a class or namespace
   tabs_to_wt[max_idx++] = waytype_t::track_wt;
                           ^
gui/vehiclelist_frame.cc:263:27: error: ‘waytype_t’ is not a class or namespace
   tabs_to_wt[max_idx++] = waytype_t::narrowgauge_wt;
                           ^
gui/vehiclelist_frame.cc:267:27: error: ‘waytype_t’ is not a class or namespace
   tabs_to_wt[max_idx++] = waytype_t::tram_wt;
                           ^
gui/vehiclelist_frame.cc:271:27: error: ‘waytype_t’ is not a class or namespace
   tabs_to_wt[max_idx++] = waytype_t::road_wt;
                           ^
gui/vehiclelist_frame.cc:275:27: error: ‘waytype_t’ is not a class or namespace
   tabs_to_wt[max_idx++] = waytype_t::water_wt;
                           ^
gui/vehiclelist_frame.cc:279:27: error: ‘waytype_t’ is not a class or namespace
   tabs_to_wt[max_idx++] = waytype_t::air_wt;
                           ^
make: *** [build/default/gui/vehiclelist_frame.o] Fehler 1
Title: Re: r8914 - compile error Linux 64 bit
Post by: ceeac on February 14, 2020, 09:18:50 PM
Which compiler do you use? I had no trouble compiling using a recent version of GCC / clang. The waytype_t:: prefix requires C++11, so if your compiler version defaults to pre-C++11 this will not work. Try this:
Code: [Select]
make clean; FLAGS="-std=c++11" make
Title: Re: r8914 - compile error Linux 64 bit
Post by: Dwachs on February 15, 2020, 10:05:55 AM
Removed these enum names in 8916
Title: Re: r8914 - compile error Linux 64 bit
Post by: Andarix on February 15, 2020, 10:30:23 AM
works, thank you Dwachs