Re: Redeclaration of local variables (?)
Posted in 1992
>From: uunet!salmon.demon.co.uk!neil ("Neil S. Briscoe") >Subject: Redeclaration of local variables (?) >Date: 19 Aug 92 15:13:41 GMT >X-Informix-List-Id: <news.1681> > >Platform: Sun 3/100, SunOS4.1 >INFORMIX-4GL Version 4.00.UD3 with an INFORMIX-SQL Version 4.00.UD4 >Standard Engine. > >I had the message: >ut_merge.c Line 4351 redeclaration of prepare_sel_ This is therefore probably a C compiler error message. If it came from 4GL, the file referenced would be ut_merge.4gl; if it came from ESQL, the file referenced would be ut_merge.ec. Also, the message format is more like that used by the C compiler... In fact, I would expect an error message to refer to the .ec file even if the compiler was compiling the C produced from the .ec file... >When I checked the source module, prepare_sel_ is a *local* variable >defined in three separate functions. When you checked the source, did you look at the I4GL code or the generated C code? I would expect your observation to be valid for both, which would then indicate a broken C compiler -- however, you don't get many broken C compilers on Unix boxes, so it needs more careful scrutiny. Have you tracked down the declarations of prepare_sel_ in the C code? Are these internal to the function or external to them? If internal and the compiler is wittering, then you have a seriously defective compiler. If external, then we have a question of what is being done on your other machines where it does work. Where are the variables declared on those other machines? None of this is a definitive answer, but to give one would need much more information than should be sent over the net... >Neil S. Briscoe Telephone: +44 252 376737 >System Administrator Fax: +44 252 376644 > Email: neil@salmon.demon.co.uk > nbriscoe@cix.compulink.co.uk Yours sincerely, Jonathan Leffler (johnl@obelix.informix.com) #include <disclaimer.h>