red hat linux 9.0版本下informix esql编译报错解决

发表于:2007-06-22来源:作者:点击数: 标签:
We used a brute force approach. Make the following code into a .c file, and include it in your program. At the start of main(), catll ctSetup().... linux 9.0版本下informix e sql 编译报错解决: We used a brute force approach. Make the follo

   
  We used a brute force approach. Make the following code into a .c file,
and include it in your program. At the start of main(), catll ctSetup()....

linux 9.0版本下informix esql编译报错解决:

We used a brute force approach. Make the following code into a .c file,
and include it in your program. At the start of main(), catll ctSetup().

Make sure you compile statically or else the dynamic loader will cause
problems.(此处强调编译时必须使用esql -static参数)

I've seen others use macros, but this worked good enough for us...


#include


__const unsigned short int *__ctype_b;
__const __int32_t *__ctype_tolower;
__const __int32_t *__ctype_toupper;


void ctSetup()
{
__ctype_b = *(__ctype_b_loc());
__ctype_toupper = *(__ctype_toupper_loc());
__ctype_tolower = *(__ctype_tolower_loc());
}

原文转自:http://www.ltesting.net