Re: HELP REQUIRED ON PRO*C

From: walter briscoe <walter_at_wbriscoe.demon.co.uk>
Date: 1996/09/02
Message-ID: <841697097snz_at_wbriscoe.demon.co.uk>#1/1


In article <322B4ED5.1BD7_at_dadd.ti.com>

           rajag_at_dadd.ti.com "G. RajaGopal-A756513-NA" writes:

> URGENT HELP REQUIRED ON PRO*C:
> -----------------------------
>
> We seem to be facing a version compatibility problem with PRO*C.
>
> The problem is as follows.
>
> The code has a 'typedef' of the following kind.
>
> typedef int Bool, *Bool_ptr;
>
> When compiled in 1.5.10.1.0 version of Proc it compiles perfectly.
>
> But now compiled in 2.1.2.0.0 it comes out with the following error
> at the time of pre processing.
>
>
> ======================================================================
> typedef int Bool, *Bool_ptr;
> .................1
> (1) PCC-S-02201, Encountered the symbol "," when expecting one of the
> following:
>
> ; ( [
>
>
>
> ======================================================================
>
> The command line options used in the compilation are
>
> SQLCHECK=SEMANTICS userid=ctrp/ctrp ireclen=132 oreclen=132
> select_error=yes mode=oracle iname=raja.pc oname=raja.c

Try adding a parse option. Implemented but undocumented in 2.0. Documented in latest version. 2.2? Try parse=none; other values are full & partial?. Beware a bug with parse=none: given 2 uses of the same name, early version 2 PRO*C versions pick the global one in preference to the local one. Can be very confusing when one has to modify supposedly working code and "nothing has changed".

-- 
Walter Briscoe
Received on Mon Sep 02 1996 - 00:00:00 CEST

Original text of this message