How to connect Dev-C++ to MySQL Server 5.7 using MySQL Connector C++?

Previously, I’ve tried connecting Dev-C++ to MySQL in XAMPP without much problem. But when I tried connecting Dev-C++ to MySQL Server 5.7 itself using MySQL Connector C++, I did not manage to do so even though I’ve followed all the instructions stated in the MySQL Connector/C++ Developer Guide.

The application crashed when trying to connect Dev-C++ to MySQL.
enter image description here

This is my first time posting a question to here. I found it so difficult to include the entire block of code.

How to connect Dev-C++ to MySQL Server 5.7 using MySQL Connector C++?