C4GL unexplained error
Posted in 2000
Topics: Connectivity: ESQL/C, 4GL & Embedded SQL
Hi,
I am compiling ec file using c4gl but its throwing up with:
+ c4gl file.ec
+ 2> err
+ head err
fglc2: line 1950: Syntax error on identifier 'if'. (sqlhost.y)
fglc2: line 2005: Syntax error on identifier 'if'. (sqlhost.y)
fglc2: line 2008: Syntax error on identifier 'if'. (sqlhost.y)
fglc2: line 2010: right curly brace found with no matching left
curly brace
same file compiles OK with ESQL 5+ on different machines.
Can some one shed some light here?
$ c4gl -V
INFORMIX-4GL Version 4.10.UC4SCO OSR5
thanks,
Sunil
"Bhaskarla, Sunil" wrote:
> I am compiling ec file using c4gl but its throwing up with:
>
> + c4gl file.ec
> + 2> err
> + head err
> fglc2: line 1950: Syntax error on identifier 'if'. (sqlhost.y)
> fglc2: line 2005: Syntax error on identifier 'if'. (sqlhost.y)
> fglc2: line 2008: Syntax error on identifier 'if'. (sqlhost.y)
> fglc2: line 2010: right curly brace found with no matching left
> curly brace
>
> same file compiles OK with ESQL 5+ on different machines.
>
> Can some one shed some light here?
>
> $ c4gl -V
> INFORMIX-4GL Version 4.10.UC4> SCO OSR5
I guess you are using something that the 4.10 ESQL/C compiler doesn't
understand but the 5.00 and later ones do. Or you've hit a bug in the
4.10 compiler. Don't forget that 4.10 is not Y2K-compliant, and is over
10 years old. You might consider upgrading to I4GL 4.20 as a minimal
step.
--
Yours,
Jonathan Leffler (Jonathan.Leffler@Informix.com) #include <disclaimer.h>
Guardian of DBD::Informix v1.00.PC1 -- http://www.perl.com/CPAN
"I don't suffer from insanity; I enjoy every minute of it!"