I am working on a C++ project on my Mac running El Capitan and I get this error even after installing openssl with Homebrew:
g++ -Wall -g -std=c++11 -I../lib
Try put these in your bash or zsh profile.
export PATH="/usr/local/opt/openssl@1.1/bin:$PATH" export LDFLAGS="-L/usr/local/opt/openssl@1.1/lib" export CPPFLAGS="-I/usr/local/opt/openssl@1.1/include" export PKG_CONFIG_PATH="/usr/local/opt/openssl@1.1/lib/pkgconfig"