boostorg / lexical_cast

General literal text conversions, such as an int represented as a string, or vice versa
https://boost.org/libs/lexical_cast
34 stars 58 forks source link

bad_lexical_cast.hpp is missing #7

Closed oblitum closed 9 years ago

oblitum commented 9 years ago

In my system, I've installed boost in /opt/local from git tag 1.57. Formally there wasn't any /opt/local/include/boost there, it was clean.

Given the following building/installation procedure

./bootstrap.sh --prefix=/opt/local --with-toolset=clang --with-icu=/usr/local/opt/icu4c

./b2 -q -j 4 --prefix="/opt/local" --build-dir="/opt/src/.build" toolset=clang variant=release optimization=speed cxxflags="-std=c++11 -stdlib=libc++" linkflags="-stdlib=libc++" install

lexical_cast.hpp is copied to /opt/local/include/boost/lexical_cast.hpp, but there isn't a /opt/local/include/boost/lexical_cast directory containing bad_lexical_cast.hpp, etc. It's in the source directory, but it was not copied on installation.

I believe it's because of some recent header spliting refactoring.

apolukhin commented 9 years ago

There've been some changes to the build system. Try adding ./b2 headers:

./bootstrap.sh --prefix=/opt/local --with-toolset=clang --with-icu=/usr/local/opt/icu4c
./b2 headers
./b2 -q -j 4 --prefix="/opt/local" --build-dir="/opt/src/.build" toolset=clang variant=release optimization=speed cxxflags="-std=c++11 -stdlib=libc++" linkflags="-stdlib=libc++" install

If it helps (or if not), tell me please.

oblitum commented 9 years ago

@apolukhin Yes, that copies the lexical_cast directory to installation.

oblitum commented 9 years ago

@apolukhin sorry, that was instructed in wiki, my bad.