0

Here's my code:

#include <openssl/bio.h>
int main (void)
{
    BIO* bo = BIO_new(BIO_s_mem());
}

I'm compiling my code by doing gcc -lcrypto test.c.

Any idea what's wrong?

neubert
  • 14,976
  • 22
  • 102
  • 184

1 Answers1

3

You have the arguments in the wrong order, try gcc test.c -lcrypto

See why order matters

David Ranieri
  • 37,819
  • 6
  • 48
  • 88