Bug #7366 Provide /include/mysql/mysql.h include
Submitted: 16 Dec 2004 22:02 Modified: 27 Sep 2007 5:12
Reporter: Olaf van der Spek (Basic Quality Contributor) Email Updates:
Status: Won't fix Impact on me:
None 
Category:MySQL Server: Compiling Severity:S4 (Feature request)
Version:* OS:Windows (Windows)
Assigned to: CPU Architecture:Any
Tags: qc

[16 Dec 2004 22:02] Olaf van der Spek
Description:
Hi,

On Linux, you have to use #include <mysql/mysql.h>. This requires that the parent dir of mysql.h is called mysql, but this is not the case in the Windows install.
Could the directory mysql be created inside include and all files moved in there?
Or copied, such that old projects don't break.

How to repeat:
Install.
[27 Sep 2007 5:12] Valeriy Kravchuk
You are not forced to use

#include <mysql/mysql.h> 

on Linux. You may use just:

#include <mysql.h>

and pass proper -I options to the compiler. We even provide a utility to generate them, http://dev.mysql.com/doc/refman/5.0/en/mysql-config.html.

On Windows you can use the same

#include <mysql.h>

after adding include subdirectory to the similar standard include directories list. So, I do not see any big need in fixing/changing anything.