probuje od podstaw. pisze program i juz przy pierwszym wywolaniu jakiejkolwiek funkcji ktora tym razem jest w ssl.h lub bio.h wywala bledy.

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

#include <string.h>
#include <signal.h>
#include <unistd.h>
#include <syslog.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <sys/wait.h>
#include <netdb.h>
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <openssl/ssl.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <errno.h>
#include <openssl/ssl.h>
#include <openssl/bio.h>
#include <net/route.h>

BIO *sbio;
SSL *ssl;
int main()
{
printf("dziala\n");
const char* nazwa = "aaa";
sbio = BIO_new_file(nazwa, "r");
//definicja funkcji z bio.h : BIO *BIO_new_file(const char *filename, const char *mode);
return 0;
}
przy kompilacji wywala: undefined reference to BIO_new_file.
Jakies sugestie? moglby ktos u siebie to skompilowac? z gory dzieki za jakakolwiek pomoc