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
  • 15,947
  • 24
  • 120
  • 212

1 Answers1

3

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

See why order matters

David Ranieri
  • 39,972
  • 7
  • 52
  • 94