News:

Simutrans Tools
Know our tools that can help you to create add-ons, install and customize Simutrans.

r9258 server ( non gui ) not compile

Started by Andarix, September 27, 2020, 04:57:56 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Andarix

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)

ceeac

This patch should fix the error.

prissi