News:

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

cannot compile server on Linux [e3e88e3]

Started by Vladki, January 21, 2017, 10:39:33 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Vladki

This happens when I want to compile server binary on
Client binary compiles without error.
I see that there are some really fresh commits. Should I wait for more changes before updating the server?


> make
===> CXX besch/reader/image_reader.cc
besch/reader/image_reader.cc: In member function 'virtual obj_besch_t* image_reader_t::read_node(FILE*, obj_node_info_t&)':
besch/reader/image_reader.cc:113:14: error: 'class image_t' has no member named 'pic'
  if(  besch->pic.h > 0  ) {
              ^~~
besch/reader/image_reader.cc:114:10: error: 'class image_t' has no member named 'pic'
   besch->pic.h = 1;
          ^~~
besch/reader/image_reader.cc:116:14: error: 'class image_t' has no member named 'pic'
  if(  besch->pic.w > 0  ) {
              ^~~
besch/reader/image_reader.cc:117:10: error: 'class image_t' has no member named 'pic'
   besch->pic.w = 1;
          ^~~
besch/reader/image_reader.cc:119:14: error: 'class image_t' has no member named 'pic'
  if(  besch->pic.len > 0  ) {
              ^~~
besch/reader/image_reader.cc:120:10: error: 'class image_t' has no member named 'pic'
   besch->pic.len = 4;
          ^~~
besch/reader/image_reader.cc:122:9: error: 'class image_t' has no member named 'pic'
  besch->pic.x = 0;
         ^~~
besch/reader/image_reader.cc:123:9: error: 'class image_t' has no member named 'pic'
  besch->pic.y = 0;
         ^~~
besch/reader/image_reader.cc:28:36: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
  fread(besch_buf, node.size, 1, fp);
                                    ^
common.mk:50: recipe for target 'build/default/besch/reader/image_reader.o' failed
make: *** [build/default/besch/reader/image_reader.o] Error 1
v

jamespetts

I think that I have fixed this now: thiank you for the report. The things that I am changing are mainly translation patches from Standard that should make little or no difference to the actual code.
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

Vladki