0

I've run into a problem trying to call boundary conditions in halide code. I'm using the binary build halide-mac-64-trunk... from the site. I've had no other problems calling other halide functions.

Image input = load_image(argv[1]);

bounded_luma = Halide::BoundaryConditions::repeat_edge(input);

Undefined symbols for architecture x86_64: "Halide::BoundaryConditions::repeat_edge(Halide::Func const&, std::__1::vector, std::__1::allocator > > const&)", referenced from: Halide::Func Halide::BoundaryConditions::repeat_edge, int, int, int, int>(Halide::Buffer, int, int, int, int) in main.o ld: symbol(s) not found for architecture x86_64

1 Answer 1

0

The __1s indicate that it could be that libHalide was compiled with libc++, and you're compiling with libstdc++ (or vice-versa). Try adding -stdlib=libc++ or -stdlib=libstdc++ to your compile flags.

2
  • when using -stdlib=libstdc++ I run into errors due to the missing #include <atomic> Mar 3, 2017 at 21:31
  • The __1s were a hint that caused me to examine the projects package management configs. It was the culprit. Mar 3, 2017 at 22:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.