The International Simutrans Forum

 

Author Topic: r8914 - compile error Linux 64 bit  (Read 125 times)

0 Members and 1 Guest are viewing this topic.

Offline Andarix

  • *
  • Posts: 92
r8914 - compile error Linux 64 bit
« 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

Offline ceeac

  • *
  • Posts: 58
Re: r8914 - compile error Linux 64 bit
« Reply #1 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

Offline Dwachs

  • DevTeam, Coder/patcher
  • Administrator
  • *
  • Posts: 4620
  • Languages: EN, DE, AT
Re: r8914 - compile error Linux 64 bit
« Reply #2 on: February 15, 2020, 10:05:55 AM »
Removed these enum names in 8916

Offline Andarix

  • *
  • Posts: 92
Re: r8914 - compile error Linux 64 bit
« Reply #3 on: February 15, 2020, 10:30:23 AM »
works, thank you Dwachs