Linking Problem

Johannes Ruscheinski ruschein at
Tue Sep 20 09:01:18 PDT 2011


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.


Obligatory current favourite quotes:

"We are all atheists about most of the gods that societies have ever
believed in. Some of us just go one god further."
--Richard Dawkins

"Religion is regarded by the common people as true, by the wise as
false, and by the rulers as useful".
 -- Seneca
"I have more confidence in the methods of science, based on the amazing
record of science and its ability over the centuries to answer
unanswerable questions, than I do in the methods of faith (what are they?)."
 -- David J. Gross "Physics Nobel Laureate"

"Atheism is a religion to the same extent that not collecting stamps is a
 -- seen on

More information about the macports-users mailing list