Hi Tim,

> -----Original Message-----
> From: Tim Nelson [mailto:[EMAIL PROTECTED]]

> cpc is giving me the following duplicate variable name error:
> 
>       6982         *** PRECOM-ERROR NO :    -828   Duplicate 
> variable name
> 
> I know that Informix's ESQL compiler just outputs a warning, but cpc
> won't let it through.  These are local variables to the function just
> like variables in the function block....
> 
> Is there any way around this ?????
> 

For the SAPDB C/C++ Precompiler you can't use the declare section to declare

parameters for function arguments.
As a workaround you can use the following.

func2(i)
   int i;
{
   EXEC SQL BEGIN DECLARE SECTION;
   int *ip = &i;
   EXEC SQL END DECLARE SECTION;
}

Regards
Burkhard

Reply via email to