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
You can also use an Apple Developer Account to download the standalone option
https://developer.apple.com/download/more
You'll see something like this: