fph / bastet

Evil falling block game. http://fph.altervista.org/prog/bastet.html
GNU General Public License v3.0
272 stars 35 forks source link

fixed Boost.TR1 unordered_set include issue on Gentoo #5

Closed livibetter closed 7 years ago

livibetter commented 7 years ago

Note: I am not a C++ coder nor knowing anything about C++11/Boost.TR1, so the simple path change might not be a correct solution.


On Gentoo with Boost 1.56.0-r1, using GCC-4.9.3:

g++ -DNDEBUG -Wall   -c -o Ui.o Ui.cpp
In file included from /usr/include/boost/tr1/tr1/unordered_set:9:0,
                 from BastetBlockChooser.hpp:26,
                 from Ui.cpp:22:
/usr/include/boost/tr1/detail/config_all.hpp:164:41: fatal error: ../4.9.3/utility: No such file or directory
 #  include BOOST_TR1_STD_HEADER(utility)
                                         ^

Using clang-3.7.1-r100:

clang++ -DNDEBUG -Wall   -c -o Ui.o Ui.cpp
In file included from Ui.cpp:22:
In file included from ./BastetBlockChooser.hpp:26:
In file included from /usr/include/boost/tr1/tr1/unordered_set:9:
/usr/include/boost/tr1/detail/config_all.hpp:158:17: fatal error: 'utility' file not found
#  include_next <utility>
                ^

Changing the include, as per the Boost documentation indicating, solves the issue.