I am compiling some c++ code with clang++ and it uses opencv. I have a MacOS Catalina. My compilation command is this:
clang++ -std=c++11 Heartbeat.cpp opencv