Re: Pro*C & C-precompiler coexistence problem

From: Preeti Somal <psomal_at_us.oracle.com>
Date: 1996/04/05
Message-ID: <3165A5AF.134A_at_us.oracle.com>#1/1


Almut Herzog wrote:
>
> Suu Quan wrote:
> >
> > I would like to do this in my Pro*C
> > #define LENGTH 23
> > ...
> > columnName varchar(LENGTH), ...
> >
> > instead of the infamous
> > columnName varchar(23),
> >
>
> In Pro*C/C++ this is solved. From the manual:
> " Release 2.1 of the Pro*C/C++ Precompiler incorporates a C parser and
> preprocessor. Pro*C supports most C preprocessor directives. Some of the
> things that you can do using the Pro*C preprocessor are
> + define constants and macros using the #define directive, and use the
> defined entities to parameterize Pro*C datatype declarations, such as
> VARCHAR
> ..."
>
> --
> Almut Herzog
> SECTRA Secure Transmission AB e-mail: al-her_at_sectra.se
> Teknikringen 2 voice: ++46 13 235221
> 583 30 Linkoping fax: ++46 13 212185

Exactly, note that you have to set the following precompiler option   PARSE to PARTIAL or FULL
Its values are none (precompiler 1.x behaviour), PARTIAL and FULL. Refer to page 4-5 programmer's guide to the Oracle Pro*C/C++ Precompiler, rel 2.1.

Preeti Received on Fri Apr 05 1996 - 00:00:00 CEST

Original text of this message