I'm practicing with the MySQL C API, because I need to do a project for the university. I have a problem after compiling with gcc on ubuntu.
I'm working with MariaDB on simple example like this:
#include <my_global.h>
#include <mysql.h>
int main(int argc, char **argv)
{
printf("MySQL client version: %s\n", mysql_get_client_info());
exit(0);
}
When I compile with GCC with this command:
$ gcc version.c -o version `mysql_config --cflags --libs`
I receive this error that i can't resolve:
/usr/bin/ld: cannot find -lssl
/usr/bin/ld: cannot find -lssl
collect2: error: ld returned 1 exit status
Can someone help me?