Hi,
I have just had a problem compiling Qt's (4.2.2) plugin for firebird
(2.0.0.12748). At first I though the problem was with Qt, but investigating
the problem I found that it arose from these lines in ibase.h:
#if defined(_LP64) || defined(__LP64__) || defined(__arch64__)
typedef unsigned int FB_API_HANDLE;
#else
typedef void* FB_API_HANDLE;
#endif
In Qt's code, it has the following function:
QVariant QIBaseResult::handle() const
{
return QVariant(qRegisterMetaType<isc_stmt_handle>("isc_stmt_handle"),
d->stmt);
}
which fails because it was expecting "d->stmt" to be a pointer. To me, it
seems that changing isc_stmt_handle from a pointer to a 'simple' uint
depending on the architecture is a problem, this should be consistant. I'm
not very fluent in C++, but it seems that the declaration should be:
#if defined(_LP64) || defined(__LP64__) || defined(__arch64__)
typedef unsigned int* FB_API_HANDLE;
#else
typedef void* FB_API_HANDLE;
#endif
?? Is this right or am I missing something here?
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEVFirebird-Devel mailing list, web interface at
https://lists.sourceforge.net/lists/listinfo/firebird-devel