https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104962
--- Comment #2 from James Murphy <murphy_535 at hotmail dot com> --- Created attachment 52639 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52639&action=edit client1.c /* * client1.c * * * from Paul DuBois MySQL page 225 * * * */ #include <stdio.h> #include <mysql.h> #define def_host_name "localhost" /* host to connect to */ #define def_user_name "cpp" /* user name */ #define def_password "n6532l" /* user password */ #define def_db_name NULL /* database to connect to */ MYSQL *conn; /* pointer to connect handler */ int main (int argc, char *argv[]) { conn = mysql_init(NULL); mysql_real_connect ( conn, /* pointer to connection handler */ def_host_name, /* host to connect to */ def_user_name, /* user name */ def_password, /* user password */ def_db_name, /* database to connect to */ 0, /* port (using default) */ NULL, /* socket (use default) */ 0 /* flags (none) */ ); mysql_close(conn); exit(0); }