Your compiler error is:
In file included from /usr/local/include/sqlplus.hh:14,
from main.cpp:26:
/usr/local/include/connection1.hh:10: mysql.h: No such file or directory
You have to tell the compiler where mysql.h is. Your mysql install should
have placed all the mysql files in the /usr/include/mysql directory. What
about your mysql installation? Find out, then add a compiler parameter
like -I/usr/include/mysql
look for these files:
chardefs.h m_ctype.h my_net.h mysql.h sslopt-case.h
dbug.h m_string.h my_no_pthread.h mysql_version.h sslopt-longopts.h
errmsg.h my_config.h my_pthread.h my_sys.h sslopt-usage.h
history.h my_global.h mysql_com.h raid.h sslopt-vars.h
keymaps.h my_list.h mysqld_error.h readline.h tilde.h
Rich