0

Hey guys I'm really new to C++ so please be patient. I think I have a really easy problem to solve for you. I need to compile a C++ file in a virtual machine for university. My Input:

g++ decrypt_me.cpp

I get the following errors:

undefined reference to `SHA1_Init'
undefined reference to `SHA1_Update'
undefined reference to `SHA1_Final'

I know this has something to do with putting -lssl with it, but non of my trys worked so far. Thank you in advance!

  • 3
    If you know that it has something to do with -lssl then why is your input not g++ -lssl decrypt_me.cpp? – eerorika Apr 21 '20 at 22:28
  • 1
    Does this answer your question? [What is an undefined reference/unresolved external symbol error and how do I fix it?](https://stackoverflow.com/questions/12573816/what-is-an-undefined-reference-unresolved-external-symbol-error-and-how-do-i-fix) – JaMiT Apr 21 '20 at 23:59

0 Answers0