+1 vote
asked by

  getting below error?

Undefined symbols for architecture x86_64:

  "std::__1::__vector_base_common<true>::__throw_length_error() const", referenced from:

      void std::__1::vector<WPOINT, std::__1::allocator<WPOINT> >::__push_back_slow_path<WPOINT const&>(WPOINT const&&&) in libMitekCV.a(FindABCD2.o)

      std::__1::vector<WPOINT, std::__1::allocator<WPOINT> >::allocate(unsigned long) in libMitekCV.a(FindABCD2.o)

ld: symbol(s) not found for architecture x86_64

clang: error: linker command failed with exit code 1 (use -v to see invocation)

1 Answer

0 votes
answered by (8.2k points)

Try the below step to add   libc++.dylib

  1. Select your project (the blue file) in your project navigator (Command 1 if it's hidden)
  2. Select your target
  3. Go to Build Phases
  4. Expand "Link Binary With Libraries"
  5. Click the "+"
  6. Type libc++.dylib in the search bar.
  7. Select the libc++.dylib file and press "Add"