I'm trying to compile someone elses code. I have very minimal knowledge of C++ and make, not enough to get the solution from user manual sites, so I will need detailed step by step answers. Error
In file included from /usr/include/c++/8/bits/char_traits.h:39, from /usr/include/c++/8/string:40, from vulture_tile.h:6, from vulture_tile.cpp:20: /usr/include/c++/8/bits/stl_algobase.h:243:56: error: macro "min" passed 3 arguments, but takes just 2 min(const _Tp& __a, const _Tp& __b, _Compare __comp) ^ /usr/include/c++/8/bits/stl_algobase.h:265:56: error: macro "max" passed 3 arguments, but takes just 2 max(const _Tp& __a, const _Tp& __b, _Compare __comp)
I have determined that the min and max definitions provided in the source conflict with those in stl_algobase.h. From the makefile.
g++ -Wall -O -g -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DUSE_SDL_SYSCALLS -g3 -Wall -DVULTURE_SLASHEM -DVULTURE_SLASHEM_0_0_7E7F2 -I /home/eric/Games/Vulture/include -I . -I build_slashem_0_0_7E7F2/ -c vulture_tile.cpp -o build_slashem_0_0_7E7F2/vulture_tile.o
Can I tell g++ to ignore stl_algobase.h? If so, how?