[Ur] OpenSSL and C FFI

David Snider david at davidsnider.net
Sat Oct 20 08:54:51 EDT 2012


|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 at ubuntu:~/Projects/UrShop$ urweb urshop
/usr/bin/ld: /usr/local/lib/liburweb.so: undefined reference to symbol 'SHA256_Init@@OPENSSL_1.0.0'
/usr/bin/ld: note: 'SHA256_Init@@OPENSSL_1.0.0' 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?


|

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.impredicative.com/pipermail/ur/attachments/20121020/ce0ade5b/attachment.html>


More information about the Ur mailing list