I am trying to build cascade library using G++ 8.3.0. In the documentation they mention that it was tested on G++ 4.7.2. My question is, is it necessary to downgrade to 4.7.2? if so could you please tell me how? because I tried both 4.8 (oldest version available according to $which gcc command) and 8.3.0 to build cascade and received the following error:
In file included from ../../include/descore/descore.hpp:104,
from ../../include/descore/stdafx.h:38,
from Wildcard.cpp:44:
../../include/descore/stltree.hpp:74:34: error: redefinition of ‘struct std::less<_Tp*>’
template <typename T> struct less <T *>
^~~~~~~~~~
In file included from /usr/include/c++/8/bits/stl_tree.h:65,
from /usr/include/c++/8/set:60,
from ../../include/descore/descore.hpp:88,
from ../../include/descore/stdafx.h:38,
from Wildcard.cpp:44:
/usr/include/c++/8/bits/stl_function.h:424:12: note: previous definition of ‘struct std::less<_Tp*>’
struct less<_Tp*> : public binary_function<_Tp*, _Tp*, bool>
^~~~~~~~~~
make: *** [Makefile:17: ../../objs/descore/Wildcard.o] Error 1
Or should I make changes to the .hpp files?
(My final aim is to use cascade with G++-11. on ubuntu 19.10)
Thanks in advance.