Closed JoxC closed 6 years ago
On ubuntu 14, when install, error occurs as below:
main.o: In function validate': main.c:(.text+0x327): undefined reference tod2i_PKCS7_bio' main.c:(.text+0x563): undefined reference to EVP_MD_CTX_init' main.c:(.text+0x568): undefined reference toEVP_sha1' main.c:(.text+0x57f): undefined reference to EVP_DigestInit_ex' main.c:(.text+0x59c): undefined reference toEVP_DigestUpdate' main.c:(.text+0x5c2): undefined reference to EVP_DigestUpdate' main.c:(.text+0x5e8): undefined reference toEVP_DigestUpdate' main.c:(.text+0x600): undefined reference to `EVP_DigestFinal_ex'
validate': main.c:(.text+0x327): undefined reference to
EVP_MD_CTX_init' main.c:(.text+0x568): undefined reference to
EVP_DigestInit_ex' main.c:(.text+0x59c): undefined reference to
EVP_DigestUpdate' main.c:(.text+0x5e8): undefined reference to
Put -lcrpyto at end of link command fix the issue. you can reference this link: https://stackoverflow.com/questions/22988320/undefined-reference-to-sha1-at-line
On ubuntu 14, when install, error occurs as below:
Put -lcrpyto at end of link command fix the issue. you can reference this link: https://stackoverflow.com/questions/22988320/undefined-reference-to-sha1-at-line