Undefined symbols for architecture arm64:
"std::Pod_exception::what() const", referenced from:
vtable for std::__1::bad_function_call in libDemo.a(Demo.o)
"typeinfo for std::Pod_exception", referenced from:
typeinfo for std::1::bad_function_call in libDemo.a(Demo.o)
"std::Pod_exception::~Pod_exception()", referenced from:
std::1::bad_function_call::~bad_function_call() in libDemo.a(Demo.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Fix problem:
Undefined symbols for architecture arm64: "std::Pod_exception::what() const", referenced from: vtable for std::__1::bad_function_call in libDemo.a(Demo.o) "typeinfo for std::Pod_exception", referenced from: typeinfo for std::1::bad_function_call in libDemo.a(Demo.o) "std::Pod_exception::~Pod_exception()", referenced from: std::1::bad_function_call::~bad_function_call() in libDemo.a(Demo.o) ld: symbol(s) not found for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation)