ryandesign at macports.org
Tue Sep 20 09:05:00 PDT 2011
On Sep 20, 2011, at 11:01, Johannes Ruscheinski wrote:
> I am trying to build a C++ program that uses the MD5() and SHA1()
> functions. I think they're being included via the
> #include <openssl/md5.h>
> #include <openssl/sha.h>
> include directives. I did add the -lssl linker flag but still get
> linker errors complaining about a missing _MD5 and _SHA1. Any ideas
> which library I need to add to my linker command line. Also, I am
> using a g++ from MacPorts and not the XCode one.
How about adding -lcrypto?
This isn't really a MacPorts question.
More information about the macports-users