~/D/t/c/p/smart $ clang++ -std=c++14 main.cc -o main
Undefined symbols for architecture x86_64:
"foo::foo()", referenced from:
_main in main-b39a70.o
"foo::~foo()", referenced from:
_main in main-b39a70.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
My code as follows:
Compile result: