You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fill out general information
OS: Arch Linux
BeamMP-Server Version: v3.5.0
Describe the bug
When compiling, this error occurs:
/home/username/BeamMP-Server/include/Common.h:312:10: error: ‘copy_n’ is not a member of ‘std’; did you mean ‘copy’?
Compilation does not complete.
To Reproduce
Steps to reproduce the behavior:
Follow the "Build from Source" instructions in README.md
Expected behavior
Compile finishes
Logs
output of "cmake --build bin --parallel --config Release -t BeamMP-Server -v |& tee build_error.log" build_error.log
Additional context
gcc (GCC) 14.1.1 20240507
cmake version 3.29.3
I believe the solution is to add:
#include <algorithm>
to the include section of include/Common.h. I was able to successfully compile on my system with this addition. This addition is technically necessary since the algorithm header is where copy_n is defined, but on many systems it gets included from another header file.
The text was updated successfully, but these errors were encountered:
Fill out general information
OS: Arch Linux
BeamMP-Server Version: v3.5.0
Describe the bug
When compiling, this error occurs:
/home/username/BeamMP-Server/include/Common.h:312:10: error: ‘copy_n’ is not a member of ‘std’; did you mean ‘copy’?
Compilation does not complete.
To Reproduce
Steps to reproduce the behavior:
Follow the "Build from Source" instructions in README.md
Expected behavior
Compile finishes
Logs
output of "cmake --build bin --parallel --config Release -t BeamMP-Server -v |& tee build_error.log"
build_error.log
Additional context
gcc (GCC) 14.1.1 20240507
cmake version 3.29.3
I believe the solution is to add:
to the include section of include/Common.h. I was able to successfully compile on my system with this addition. This addition is technically necessary since the algorithm header is where copy_n is defined, but on many systems it gets included from another header file.
The text was updated successfully, but these errors were encountered: