bibendovsky / bstone

Unofficial source port for Blake Stone series
Other
296 stars 34 forks source link

Compile Error on Debian 12 #499

Closed autopr3z closed 2 months ago

autopr3z commented 2 months ago

Hi! I'm getting a compile error on the main branch. Below is the error it gives me.

[ 80%] Building CXX object src/CMakeFiles/bstone.dir/bstone_saved_game.cpp.o /home/dan/Git/bstone/src/bstone_saved_game.cpp: In function ‘void bstone::sg_delete_chunk(FourCc, MemoryStream&)’: /home/dan/Git/bstone/src/bstone_saved_game.cpp:116:14: error: ‘copy_n’ is not a member of ‘std’; did you mean ‘copy’? 116 | std::copy_n( | ^~ | copy

I gather 'copy_n' isn't part of std. I am using Debian 12.

Thanks so much for your hard work on this engine! The pace of development is wild, and it's really exciting to see all these improvements.

noabody commented 2 months ago

Adding #include <algorithm> to src/bstone_saved_game.cpp solves the missing 'copy_n' issue for me on Manjaro Linux.

bibendovsky commented 2 months ago

Fixed in 8fc3bceaec1b992905b601e139c42da37a3a4f45.

autopr3z commented 2 months ago

Works for me! Thanks for the quick response, now I can finally blake the stone.