I keep getting this message.

undefined reference to `mysql_get_client_info'

From what I can figure out when I google it I am not linking correctly. So I tried this.

gcc *.c -L"C:\Program Files\MySQL\MySQL Server 5.7\lib"

Can I please get some help on what I am doing wrong?