Bug #24053 Compiling error at connection.cpp:165
Submitted: 7 Nov 2006 17:27 Modified: 9 Dec 2006 0:38
Reporter: Weiguo Liu Email Updates:
Status: Unsupported Impact on me:
None 
Category:MySQL++ Severity:S2 (Serious)
Version:2.1.1 OS:MacOS (Mac OS X)
Assigned to: CPU Architecture:Any
Tags: Compilation, Mac OS X, MySql++-2.1.1

[7 Nov 2006 17:27] Weiguo Liu
Description:
I'm new to MySql++, and compiling MySql++ 2.1.1 in a Mac OS X V10.4.8. It returns error:
"./connection.cpp:165: error: 'ulong' was not declared in this scope." 

The code piece near line 165 is: 
163 #if MYSQL_VERSION_ID >= 40101
164	if (option_pending(opt_multi_statements, true)) {
165		client_flag |= CLIENT_MULTI_STATEMENTS;
166	}
167 #endif

Once I included "my_global.h", the error disappeared. Is connection.cpp the right place to add this head file?

Btw, there are a bunch of warnings like the following:
"../config.h:59:1: warning: "PACKAGE_BUGREPORT" redefined"
Are these known and benign?

Thanks, 

Weiguo 

How to repeat:
Compiling in the same env.

Suggested fix:
Add line at the begining of connector.cpp:

#include "my_global.h"  // for ulong definition
[9 Dec 2006 0:38] MySQL Verification Team
Thank you for the bug report. Currently we aren't maintaining MySQL please enter in contact with its maintainer. Thanks in advance.