2 messages in com.mysql.lists.plusplusRe: undef_short not found
FromSent OnAttachments
David Birchfield06 Feb 2001 11:17 
Thimble Smith06 Feb 2001 12:42 
Subject:Re: undef_short not found
From:Thimble Smith (ti@mysql.com)
Date:02/06/2001 12:42:19 PM
List:com.mysql.lists.plusplus

On Tue, Feb 06, 2001 at 02:17:22PM -0500, David Birchfield wrote:

I tried using #define MYSQL_NO_SHORT_NAMES in order to get around some name collisions, but received the following error.

/usr/include/sqlplus.hh:79: undef_short: No such file or directory

Is undef_short not included in the rpm distribution? Should I have it somewhere or can I get just this file elsewhere?

I'm not sure where the fault lies, but here's a copy of the file that you can put somewhere convenient:

======= undef_short ==================================================

#if !defined(__undef_short_h__) && !defined(MYSQL_FORCE_UNDEF) #define __undef_short_h__

// defs.h #undef use_exceptions

// base.h #undef BadQuery #undef MysqlCon #undef Connection

// result.h #undef ResNSel #undef ResUse #undef Res #undef Result #undef ResIter #undef ResultIter

// field_names.h #undef FieldNames

//query.h #undef Query

//string.h #undef BadConversion #undef ColData

// manip.h #undef quote #undef quote_only #undef quote_double_only #undef escape #undef do_nothing #undef ignore

// datetime.h #undef Date #undef Time #undef DateTime

// set.h #undef Set

// null.h #undef Null #undef null_type #undef null #undef NullisNull #undef NullisZero #undef NullisBlank

#endif ======= undef_short ==================================================

Tim