loc_t struct also defined in sys/localedef31.h
Posted in 1997
One version of Informix we are using on our IBM RS6000 running AIX 2 3 is: INFORMIX-OnLine Version 5.05.UC6 and INFORMIX-4GL Rapid Development System Version 4.14.UC1 When compiling some C functions for linking into the fglgo runner, like so: cc -I/usr/informix-5/incl/tools -c usr_funcs.c I'm getting this error: "/usr/include/sys/localedef31.h", line 181.3: 1506-046 (S) Syntax error. "/usr/include/sys/localedef31.h", line 181.3: 1506-081 (S) Discarding previously defined typedef identifier: loc_t The error code from the last failed command is 1. Unfortunately, our "/usr/include/sys/localedef31.h" defines "loc_t" as the runtime locale tables struct, but as everyone knows, Informix defines "loc_t" in "incl/tools/locator.h" as the locator struct for blobs. Is it safe to comment out the loc_t in localedef31.h? Is it safe to change loc_t to something else in locator.h? -- _____________________________________________________________________ | Colin McGrath cmm@trac3000.ueci.com | | Raytheon Engineers & Constructors, Inc. (215) 422-4144 | | Phila, PA, USA Standard Disclaimers Apply | |___________________________________________________________________|