Invalid includes in libmysql++-dev of libmysql-dev

Bug #72724 reported by sam
4
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 libmysqlclient15-dev in /usr/include/mysql
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/mysql++
for fl in coldata.h connection.h defs.h manip.h query.h result.h type_info.h; do
sed 's/mysql\.h/mysql\/mysql.h/g' $fl > $fl
done

Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

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:
gcc -I/usr/include/mysql -lstdc++ test.cpp

Thanks again and don't hesitate to report any new bug.

Changed in mysql++:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.