The International Simutrans Forum

Development => Patches & Projects => Incorporated Patches and Solved Bug Reports => Topic started by: Andarix on September 27, 2020, 04:57:56 PM

Title: r9258 server ( non gui ) not compile
Post by: Andarix on September 27, 2020, 04:57:56 PM
Linux/Windows not compile server binary (non GUI)

error Linux

===> 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

"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)
Title: Re: r9258 server ( non gui ) not compile
Post by: ceeac on September 28, 2020, 07:31:42 AM
This patch should fix the error.
Title: Re: r9258 server ( non gui ) not compile
Post by: prissi on September 28, 2020, 02:50:28 PM
Thanks, fixed in r9259
Title: Re: r9258 server ( non gui ) not compile
Post by: Andarix on September 28, 2020, 03:56:06 PM
works, thank you