MM:S plugin fails to compile due to stdlib-related error on newer toolchains
I'm trying to compile my fork of RCBot2 (a hybrid MM:S plugin and SourceMod extension), and it reports the following error message on the current Debian (Buster) release using Clang:
Code:
In file included from /home/user/alliedmodders/rcbot2/utils/RCBot2_meta/bot_plugin_meta.cpp:40: Code:
In file included from /usr/include/c++/8/bits/stl_algobase.h:64, Any ideas of where to go from here? Very lost since the compile error appears to happen within the standard library. Compiling a short C++ file using clang++ with the algorithm and vector includes does work no problem. Would prefer to stick to c++11. |
Re: MM:S plugin fails to compile due to stdlib-related error on newer toolchains
Ah, that's silly. Commenting out every instance of
Code:
#define swap V_swap Code:
#undef swap Not sure why the redefinition doesn't show up in the compiler errors, but regardless, this is solved. |
All times are GMT -4. The time now is 20:25. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.