Hi all
I have installed libssl0.9.8 and libssl-dev packages on Ubuntu Intrepid.
I have the following code:
That compiles, but does not link. What should I be linking with? Right now, I do
Which goes through without error, but
throws me
any ideas?
I have installed libssl0.9.8 and libssl-dev packages on Ubuntu Intrepid.
I have the following code:
Code:
#include "openssl/bio.h"
#include "openssl/ssl.h"
#include "openssl/err.h"
int main()
{
BIO* bio;
bio = BIO_new_connect("google.com");
return 0;
}
That compiles, but does not link. What should I be linking with? Right now, I do
Code:
gcc -c test.c -o test.o
Which goes through without error, but
Code:
gcc test.o -o test
throws me
Code:
undefined reference to `BIO_new_connect'