Henry
Henry

Reputation: 3160

boost: vector256.hpp: no such file or directory

I am using boost 1.66 on Ubuntu 16.04, and cmake 3.9.5. I come across the following error when I do some refactoring work on my application code, not on boost :) :

usr/include/boost/mpl/vector.hpp:37:1: fatal error: boost/mpl/vector/vector256.hpp: No such file or directory
 #   include BOOST_PP_STRINGIZE(boost/mpl/vector/AUX778076_VECTOR_HEADER)

looks like AUX778076_VECTOR_HEADER is vector256.hpp here? And indeed there's no such vector256.hpp in boost/mpl/vector/ dir.

It's probably that my refactoring work caused this but I didn't touch any cmake files and all I did was pulling some common parts out from code to make it a base class.

Anyone might be able to shed light on this?

You can find this vector.hpp here: https://www.boost.org/doc/libs/1_52_0/boost/mpl/vector.hpp

EDIT: These are the modules that I include for it set( ${PROJECT_NAME}_BOOST_COMPONENT_DEPENDENCIES thread system filesystem date_time program_options ). Did I miss something?

Upvotes: 0

Views: 691

Answers (1)

SergeyA
SergeyA

Reputation: 62583

MPL distribution includes only up to 50 something (do not remember exactly how much) type list entries for preprocessed vectors (and other type list containers).

If you need longer vectors, you'd have to create those files yourself - luckily, it's just copy/paste.

Upvotes: 2

Related Questions