Sunday, May 5, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 3304  / 3 Years ago, fri, august 6, 2021, 1:56:11

I am new to C++.



I am trying to make a MySQL connection. I found that it requires mysql-connector. I installed boost-dev-all Install boost-dev-all. I have put my mysql-connector in local directory ~/bin. I have successfully installed it.



But when I try to make mysql connection, I get an error:




fatal: cppcon: directory missing


On digging around, I understoodd cppconn folder has been missing from /usr/include. Should I copy cppconn folder to /usr/include?




sudo cp /bin/mysql-connector /usr/include

More From » 12.04

 Answers
0

The problem is likely that you have not installed the libmysqlcppconn-dev Install libmysqlcppconn-dev package, which provides the cppconn directory in /usr/include. You can install this package with:




sudo apt-get install libmysqlcppconn-dev

[#28642] Saturday, August 7, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
izecaptur

Total Points: 113
Total Questions: 102
Total Answers: 114

Location: Northern Mariana Islands
Member since Fri, Jan 15, 2021
3 Years ago
;