From: Warren Young Date: July 9 2007 6:52pm Subject: Re: MySQL include paths List-Archive: http://lists.mysql.com/plusplus/6752 Message-Id: <469283E6.8080709@etr-usa.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Axel Howind wrote: > > Would a patch to the MySQL++ headers be accepted to include mysql > headers in the way? I can't accept your simple patch, because it will only work on systems where the MySQL headers are installed under some other directory, especially a standard system include directory. This is common on *ix systems, but isn't guaranteed, and it's totally wrong on Windows. Your concern is valid, and I wonder if we can't fix it with just a little more cleverness. Something like this: #if defined(MYSQLPP_MYSQL_HEADERS_BURIED) && \ !defined(MYSQLPP_PLATFORM_WINDOWS) # include #else # include #endif Someone in your position who wants this feature and knows that their headers are organized in this way can define the macro to turn it on. It must be optional. Is this alternative acceptable? > Some programs makefiles (or MSdev-settings) would possibly have to be > changed if mysql headers are installed in nonstandard locations. On Windows, the standard path is c:\Program Files\MySQL\MySQL Server x.y\include You simply can't do it your way and have it work on Windows. The scheme is just far too different.