News:

Do you need help?
Simutrans Wiki Manual can help you to play and extend Simutrans. In 9 languages.

r8914 - compile error Linux 64 bit

Started by Andarix, February 14, 2020, 07:03:25 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Andarix

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

ceeac

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:

make clean; FLAGS="-std=c++11" make

Dwachs

Parsley, sage, rosemary, and maggikraut.