I'm trying to use openssl in a gcc program but it isn't working.
g++ server.cpp /usr/lib/libssl.a -o server
gives an error message, as does anything with the -l
option. What must I type on the command line to link with openssl? The file /usr/lib/libssl.a
exists, but nevertheless I still get the linker error no such function MD5() exists
.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…