Connection

Hi all,

I am newbie in linux. Currently i am having a problem in connecting mysql and c++ in linux. When i try to run my script in terminal i have a problem as below,

test.cpp:3:19: fatal error: mysql.h: No such file or directory
compilation terminated.
To overcome this problem, i tried to install the 'mysql-connector-cpp' package. However, i do have another problem which is,
'mysql-connector-cpp' not found in package names. Trying capabilities.
No provider of 'mysql-connector-cpp' found.
So is there anyway to overcome this problem or anyway to get the "mysql.h' ?Anyone can assist me about this?
Best Regards.
closed account (Dy7SLyTq)
do you actually have mysql? is it in ur programs directory or the search path?
did you try installing the
libmysqlcppconn-dev
package? it seems to be what you need, idk if it's in your repositories, but if you're using ubuntu it should be
Topic archived. No new replies allowed.