Re: GCC/Informix/AIX compile problems!
Posted in 1999
re wrote: > > Hi, i've installed GCC 2.8.1 from www.bull.de in my > AIX 4.2.1 machine. > > When i try to compile my Informix (ESQL/C) programs > the compiler reports the following error: > > In file included from /usr/include/sys/localedef.h:43, > from > /usr/local/lib/gcc-lib/powerpc-ibm-aix4.1.5.0/2.8.21/include/stdlib.h:424, > from aplic2.ec::11: > /usr/include/sys/localedef31.h:195: confliting types for 'loc_t' > /home/informix7d/incl/locator.h:115: previous declaration of 'loc_t' > > In fact the loc_t structures defined in each file > (/usr/include/sys/localedef31.h and > /home/informix7d/incl/locator.h) are very diferent! > > Anybody have ideais? Known problem on AIX which is the reason that the loc_t structure was renamed in later versions. Change loc_t in locator.h to something else like 'loc_struct_t' then add a #define loc_t loc_struct_t. Since you do not access the locale structure from localedef.h directly this should work. Art S. Kagel