From: Bill G. <bg...@co...> - 2010-01-19 19:17:19
|
Hi Dmitry, Thanks for taking a look at this. I guess I gave the wrong impression with my post. I don't have any problem building the driver-- only when I try to use it. Specifically, I get an error at execution time when I do a simple test that tries to insert two integer fields into a relation. I'll try to clean up my example and post it. As for -DSIZEOF_LONG=8, I think that *is* being defined but is not necessarily required to be defined in makefile.linux. Here is what I mean. If I look at the top of /usr/include/sqltypes.h, on my Redhat system, I see these lines. #ifndef SIZEOF_LONG # if defined(__alpha) || defined(__sparcv9) || defined(__LP64__) || (defined(__HOS_AIX__) && defined(_LP64)) # define SIZEOF_LONG 8 #else # define SIZEOF_LONG 4 #endif #endif With g++ -m64, __LP64__ is automatically defined so SIZEOF_LONG 8 is also defined SIZEOF_LONG ==8 insures that SQLINTEGER is a 4-byte quantity. Bill Dmitry Starodubov wrote: > Hi, Bill. > > I used gcc-4.1.1 for building Odbc B2_0_0 (v. 149) without errors. I > just ran makefile -f makefile.linux and get libOdbcFb.so. > What kind of error you get when build driver using original makefile? > > As Firebird uses 4-byte LONG I don't think that -DSIZEOF_LONG=8 is a > good idea. > > > ------------------------------------------------------------------------ > > > No virus found in this incoming message. > Checked by AVG - www.avg.com > Version: 9.0.725 / Virus Database: 270.14.137/2617 - Release Date: 01/12/10 14:35:00 > > |