Jordan
>Hi,
>
>Red Hat 9, IDA 9.4 UC2, CSDK 2.81, ESQLC 9.53. UC2
>
>
>I understand that this is a problem Red hat 9 renaming _ctype_b to
>_ctype_b_loc, but what can I do to get around this? I have 20+ ec programs
>I must compile on this OS.
>
>
>
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.
I've seen others use macros, but this worked good enough for us...
#include <ctype.h>
__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());
}
--
Scott Burns
Mirrabooka Systems
Tel +61 7 3857 7899
Fax +61 7 3857 1368