<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <pre class="lang-c prettyprint"><code><span class="pun">I'm trying to make a C FFI that returns the SHA256 of a string and this is what I get when I try to compile with my library added:

david@ubuntu:~/Projects/UrShop$ urweb urshop
/usr/bin/ld: /usr/local/lib/liburweb.so: undefined reference to symbol '<a class="moz-txt-link-abbreviated" href="mailto:SHA256_Init@@OPENSSL_1.0.0">SHA256_Init@@OPENSSL_1.0.0</a>'
/usr/bin/ld: note: '<a class="moz-txt-link-abbreviated" href="mailto:SHA256_Init@@OPENSSL_1.0.0">SHA256_Init@@OPENSSL_1.0.0</a>' is defined in DSO /usr/lib/gcc/x86_64-linux-gnu/4.6/../../../x86_64-linux-gnu/libcrypto.so so try adding it to the linker command line
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../x86_64-linux-gnu/libcrypto.so: could not read symbols: Invalid operation
collect2: ld returned 1 exit status

What step am I missing?


</span><span class="pln"></span></code></pre>
  </body>
</html>