JGRennison / OpenTTD-patches

OpenTTD - http://www.openttd.org/ - with additional patches
Other
572 stars 130 forks source link

[Bug]: Compilation Error #586

Closed Kiyokiii closed 1 year ago

Kiyokiii commented 1 year ago

Version of OpenTTD

jgrpp-0.54.5-11-g3ec633e63

Expected result

building successfully

Actual result

In file included from /home/username/OpenTTD-patches/src/script/api/../../command_aux.h:14, from /home/username/OpenTTD-patches/src/script/api/../../league_cmd.h:13, from /home/username/OpenTTD-patches/src/script/api/script_league.cpp:17: /home/username/OpenTTD-patches/src/script/api/../../command_func.h:86:54: error: ‘std::function’ has not been declared 86 | char *DumpCommandLog(char *buffer, const char *last, std::function<char *(char *)> flush); | ^~~ /home/username/OpenTTD-patches/src/script/api/../../command_func.h:86:67: error: expected ‘,’ or ‘...’ before ‘<’ token 86 | char *DumpCommandLog(char *buffer, const char *last, std::function<char *(char *)> flush); | ^ make[2]: *** [CMakeFiles/openttd.dir/build.make:580: CMakeFiles/openttd.dir/src/script/api/script_league.cpp.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:1108: CMakeFiles/openttd.dir/all] Error 2 make: *** [Makefile:166: all] Error 2

Steps to reproduce

mkdir build cd build cmake .. make

James103 commented 1 year ago

What OS are you trying to compile on?

Kiyokiii commented 1 year ago

Arch Linux

JGRennison commented 1 year ago

Can you try it again now

Kiyokiii commented 1 year ago

seems to be fixed now, thank you