Re: ProC: symbolic constants in the declare section?

From: -Dragon- <pdewerk_at_mondrian.CSUFresno.EDU>
Date: Thu, 12 Jan 1995 17:52:13 GMT
Message-ID: <D2B0B2.Ku1_at_zimmer.CSUFresno.EDU>


In article <1995Jan12.134324.3704_at_zh014.ubs.ubs.ch>,  <zhdkd_at_svusenet.ubs.ch> wrote:
| We have the following problem:
|
| #define ARR_LEN 4
|
| EXEC SQL BEGIN DECLARE SECTION;
|
| static char test_arr[ARR_LEN];
|
| EXEC SQL END DECLARE SECTION;
|
|
| 29 static char test_arr[ARR_LEN];
| 29 .........................^
| PCC-S-0018: Expected "<unsigned_integer>", but found "ARR_LEN" at line
| 29 in file test.pc
|
|
| Is there a way around this?
| (In case it matters: Pro*C 1.5)

Yes, run your program through the C preprocessor first, then the Pro*C preprocessor, then finally through the C compiler. (Note: this method may not be supported by Oracle, but many people do this anyway.)


[ Paul-Joseph de Werk, B.S.       \ Draconian Software & Consulting   ]
[ pdewerk_at_mondrian.csufresno.edu   \ PO Box 27981                     ]
[ paul-joseph_de_werk_at_csufresno.edu \ Fresno, CA  93729-7981          ]
[____________________________________\________________________________]
Received on Thu Jan 12 1995 - 18:52:13 CET

Original text of this message