blackberry / Boost

The Boost C++ Libraries
Boost Software License 1.0
230 stars 122 forks source link

error No such file or directory #include <boost/utility/enable_if.hpp> #15

Closed Rafoula closed 7 years ago

Rafoula commented 7 years ago

I have Ubuntu 12.04 and I follow these commands to download and install boost 1.60 :

$ wget -q http://sourceforge.net/projects/boost/files/boost/1.60.0 >/boost_1_60_0.tar.gz $ tar xf boost_1_60_0.tar.gz $ mv boost_1_60_0/boost src/

after that I want to try to built a code and I have this error:

 fatal error: boost/utility/enable_if.hpp: No such file or directory
 #include <boost/utility/enable_if.hpp>                   
                                                            ^

compilation terminated. scons: *** [build/set_hash.o] Error 1 scons: building terminated because of errors.

Do you know why I have this error? thank you

Rafoula commented 7 years ago

solution: https://sourceforge.net/projects/boost/files/boost/1.60.0/ and http://www.boost.org/doc/libs/1_60_0/more/getting_started/unix-variants.html#easy-build-and-install