'"ssl connection error: unknown error number" connecting to MYSQL with a C program

Im using code::blocks trying to perform the mysql_real_connect() function n I get that error. Im using mysql.h in the program.c n I put this in the code::block project settings

-L "C:/u/libmysql.lib "

-L "C:/OpenSSL-Win64/lib/openssl.lib"

I put the .dll in the system32 folder.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source