The International Simutrans Forum

 

Author Topic: r9258 server ( non gui ) not compile  (Read 395 times)

0 Members and 1 Guest are viewing this topic.

Offline Andarix

  • *
  • Posts: 263
  • Languages: de
r9258 server ( non gui ) not compile
« on: September 27, 2020, 04:57:56 PM »
Linux/Windows not compile server binary (non GUI)

error Linux

Code: [Select]
===> LD  /home/runner/work/simutrans/simutrans/sim
build/default/gui/components/gui_speedbar.o: In function `gui_routebar_t::draw(scr_coord)':
gui_speedbar.cc:(.text+0x400): undefined reference to `display_right_triangle_rgb(short, short, short, unsigned short, bool)'
collect2: error: ld returned 1 exit status
make: *** [/home/runner/work/simutrans/simutrans/sim] Error 1
common.mk:28: recipe for target '/home/runner/work/simutrans/simutrans/sim' failed
Error: Process completed with exit code 2.

error Windows

Code: [Select]
"D:\a\simutrans\simutrans\Simutrans-Server.vcxproj" (default target) (1) ->
(Link target) ->
  gui_speedbar.obj : error LNK2001: unresolved external symbol "void __cdecl display_right_triangle_rgb(short,short,short,unsigned short,bool)" (?display_right_triangle_rgb@@YAXFFFG_N@Z) [D:\a\simutrans\simutrans\Simutrans-Server.vcxproj]
  D:\a\simutrans\simutrans\Simutrans_Server.exe : fatal error LNK1120: 1 unresolved externals [D:\a\simutrans\simutrans\Simutrans-Server.vcxproj]

    19 Warning(s)
    2 Error(s)

Offline ceeac

  • Devotee
  • *
  • Posts: 248
Re: r9258 server ( non gui ) not compile
« Reply #1 on: September 28, 2020, 07:31:42 AM »
This patch should fix the error.

Offline prissi

  • Developer
  • Administrator
  • *
  • Posts: 10632
  • Languages: De,EN,JP
Re: r9258 server ( non gui ) not compile
« Reply #2 on: September 28, 2020, 02:50:28 PM »
Thanks, fixed in r9259

Offline Andarix

  • *
  • Posts: 263
  • Languages: de
Re: r9258 server ( non gui ) not compile
« Reply #3 on: September 28, 2020, 03:56:06 PM »
works, thank you