Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

Re: MySQL include paths

From: Warren Young <mysqlpp(at)etr-usa.com>
Date: Mon Jul 09 2007 - 14:52:22 EDT


Axel Howind wrote:
>
> Would a patch to the MySQL++ headers be accepted to include mysql
> headers in the <mysql/...> 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.

Do you need help?X

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.

-- 
MySQL++ Mailing List
For list archives: 
http://lists.mysql.com/plusplus
To unsubscribe:    
http://lists.mysql.com/plusplus?unsub=lists@pantek.com
Received on Mon Jul 9 15:22:32 2007

This archive was generated by hypermail 2.1.8 : Mon Jul 16 2007 - 05:12:18 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library