
I have been unable to build boost-trunk for a while now because of this
error:
[ 58%] Building CXX object
libs/accumulators/example/CMakeFiles/accumulators-accumulators_example.dir/main.cpp.o
/home/doriad/src/boost-trunk/boost/accumulators/statistics_fwd.hpp: In
function ‘void example1()’:
/home/doriad/src/boost-trunk/boost/accumulators/statistics_fwd.hpp:87:
error: ‘template<int N> struct boost::accumulators::tag::moment’ is not a
function,
/home/doriad/src/boost-trunk/boost/accumulators/statistics/moment.hpp:104:
error: conflict with ‘template

David Doria wrote:
I have been unable to build boost-trunk for a while now because of this error:
[ 58%] Building CXX object libs/accumulators/example/CMakeFiles/accumulators-accumulators_example.dir/main.cpp.o /home/doriad/src/boost-trunk/boost/accumulators/statistics_fwd.hpp: In function ‘void example1()’: /home/doriad/src/boost-trunk/boost/accumulators/statistics_fwd.hpp:87: error: ‘template<int N> struct boost::accumulators::tag::moment’ is not a function, /home/doriad/src/boost-trunk/boost/accumulators/statistics/moment.hpp:104: error: conflict with ‘template
typename boost::accumulators::detail::extractor_result ::type boost::accumulators::extract::moment(const Arg1&, const A0&, const A1&, const A2&, const A3&, const A4&, const A5&, const A6&, const A7&, const A8&, const A9&, const A10&, const A11&, const A12&, const A13&, const A14&)’ /home/doriad/src/boost-trunk/libs/accumulators/example/main.cpp:63: error: in call to ‘moment’
Is the problem that an example does not compile? If so, please report that via http://svn.boost.org -- however, unless you specifically need that example it does not seem to be showstopper. Unrelated to that, you don't seem to be using the official build procedure documented at: http://boost.org/more/getting_started.html That procedure does not builds examples for every library by default. - Volodya

Is the problem that an example does not compile? If so, please report that via http://svn.boost.org -- however, unless you specifically need that example it does not seem to be showstopper.
Unrelated to that, you don't seem to be using the official build procedure documented at:
http://boost.org/more/getting_started.html
That procedure does not builds examples for every library by default.
- Volodya
Volodya, I saw that you are supposed to use the bootstrap script, but it seemed reasonable to make a bin directory, and from there run ccmake on the boost-trunk directory. There was no option in the cmake configuration to not build examples. Maybe this can be added for users who wish to use this procedure. I got around it by just using 'make -k'. I also reported the accumulator example bug on the bug tracker. Thanks for the quick reply, David

David Doria wrote:
Is the problem that an example does not compile? If so, please report that via http://svn.boost.org -- however, unless you specifically need that example it does not seem to be showstopper.
Unrelated to that, you don't seem to be using the official build procedure documented at:
http://boost.org/more/getting_started.html
That procedure does not builds examples for every library by default.
- Volodya
Volodya,
I saw that you are supposed to use the bootstrap script, but it seemed reasonable to make a bin directory, and from there run ccmake on the boost-trunk directory. There was no option in the cmake configuration to not build examples. Maybe this can be added for users who wish to use this procedure.
Cmake is not the official build procedure documented above. The official one is: ./bootstrap.sh ./bjam You can use --build-dir and --stagedir options (documented in "bjam --help" output) to put intermediate and final build products outside the source tree. - Volodya
participants (2)
-
David Doria
-
Vladimir Prus