undefined reference to `hpx::partitioned_vector_partition
#include <hpx/hpx_main.hpp>
#include <hpx/include/parallel_reduce.hpp>
#include <hpx/include/partitioned_vector.hpp> //note that this changed
HPX_REGISTER_PARTITIONED_VECTOR(double);
int main()
{
hpx::partitioned_vector<double> v(1000000, 1.0);
hpx::parallel::reduce(hpx::parallel::execution::par, std::begin(v),
std::end(v), 0.0, std::plus<double>());
return 0;
}
This compiles but when i run the executable, it segfaults.