Try this:
EXEC SQL DEFINE NUM 20
EXEC SQL BEGIN DECLARE SECTION;
char myvar[NUM];
EXEC SQL END DECLARE SECTION;
Regards, Lee Kindness.
sid@questions.com writes:
> I am trying to use preprocessor directives inside the declare statements but
> its giving me compile time errors.
> What i am do is something like this
>
> EXEC SQL BEGIN DECLARE SECTION;
> char myvar[NUM];
> EXEC SQL END DECLARE SECTION;
>
> #define NUM 20 is present in one of the include files.