I have the following code
#include #include int main(int argc, char **argv) { printf(\"MySQL client version: %s\\n\",
Check that /usr/include/mysql/mysql.h exists. If you have installed the header files somewhere else (say /opt/mysql/include), add that location with -I/opt/mysql/include.
/usr/include/mysql/mysql.h
/opt/mysql/include
-I/opt/mysql/include.