|
|||||||||||
|
Re: Re: MySQL include paths
From: <axel.howind(at)htp-tel.de>
Date: Mon Jul 09 2007 - 08:13:32 EDT
You mean "normal" in the MySQL sense. I wouldn't mind it, if the header's names were somehow distinguishable from others, i.e. by using a common prefix. In the version installed on my redhat box (4.1.20), there are 41 headers under /usr/include/mysql, many of those with names like xmalloc.h, tilde.h, readline.h etc. Take readline.h as an example. There is a copy of it within the mysql-directory and one in readline's own. Now what to do when using readline and mysql_client libraries? Hope both are the same version or at least binary ccompatible? I prefer the "normal" way in the OpenGL sense: adding a directory prefix in your include directives. > You can't predict what is the MySQL header Path, so the best solution The mysql_config only works for the first of these, for the remaining two, you also have to explicitly define the include path. And IMHO there's no real advantage in using -I/usr/include/mysql3/mysql over -I/usr/include/mysql3. Axel PS: On my new ubuntu system with mysql version 5.x (don't have it here right now to check the exact version), most of the non-prefixed headers are gone. The remaining all have the prefix "my_". So, the situation seems to get better... -- MySQL++ Mailing List For list archives: http://lists.mysql.com/plusplus To unsubscribe: http://lists.mysql.com/plusplus?unsub=lists@pantek.comReceived on Mon Jul 9 08:13:47 2007 This archive was generated by hypermail 2.1.8 : Tue Jul 10 2007 - 21:34:36 EDT |
||||||||||
|
|||||||||||