Install Dev C++ (devcpp)
In Dev C++, do the following steps:
Add all of Dev_cpp/ lib to Project->ProjectOptions
Add libmysql-lib to above also
Copy MySQLLib.dll into windows/system32 and this gets rid of the mysql DLL runtime error.
Remove files not recognized during build such as ../lib/jpeg-bcc.lib.
To overcome the GtkBox error, put -mms-bitfields in the Project->Compiler Options i.e. Tools->Compiler Options->Check box. Add -mms-bitfields into it.
Using C API with MySQL, there is no need to have ODBC or any other DSNs.
In code, put #include
Put libmysql.lib, mysqlclient.lib in the compiler options.
Include /library files.