Invalid includes in libmysql++-dev of libmysql-dev
Bug #72724 reported by
sam
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mysql++ (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: libmysql++-dev
I am using Ubuntu Dapper 6.06
Problem:
libmysql++-dev includes libmysql-dev as #include <mysql.h>
Whereas apt-get installs libmysqlclient1
gcc can't find the required files if not told to explicitly include /usr/include/mysql
Steps to reproduce:
1. apt-get install libmysql++-dev
2. create a file named "test.cpp" containing the following two lines:
#include <mysql++/mysql++.h>
int main(int argc, char argv[]){}
3. execute "gcc test.cpp"
Steps to repair:
cd /usr/include/
for fl in coldata.h connection.h defs.h manip.h query.h result.h type_info.h; do
sed 's/mysql\
done
To post a comment you must log in.
Thank you for taking the time to report this issue and helping to make Ubuntu better. Examining the information you have given us, this does not appear to be a bug report.
Your problem can be solved by telling gcc where to search for the library: include/ mysql -lstdc++ test.cpp
gcc -I/usr/
Thanks again and don't hesitate to report any new bug.