title: Error in Proc*C compilation
body: <p>I'm trying to compile .pc file on Red Hat Linux v4.1.2-44 (able to compile on HP and Solaris) with following precompiler options:</p>
  
  <p><em><strong>PROCFLAGS</em></strong>=*<em>maxopencursors</em>*=100 <strong>PARSE</strong>=NONE <strong>userid</strong>=db2poc/db2poc@mydb <strong>VARCHAR</strong>=YES <strong>code</strong>=CPP <strong>CPP_SUFFIX</strong>=cpp <strong>duration</strong>=session <strong>sqlcheck</strong>=full <strong>include</strong>=/app1/myuser/Application/Source/Header <strong>SYS_INCLUDE</strong>=/oradata1/ora11g/app/ora11g/product/11.2.0/dbhome_1/rdbms/public,/oradata1/ora11g/app/ora11g/product/11.2.0/dbhome_1/precomp/public,/oradata1/ora11g/app/ora11g/product/11.2.0/dbhome_1/rdbms/plsql/public,/oradata1/ora11g/app/ora11g/product/11.2.0/dbhome_1/xdk/include,/usr/include/c++/3.4.6/backward</p>
  
  <p>The problem is, wherever there is a macro or typedef data type in EXEC SQL DECLARE SECTION, it throws an error saying <strong><em>PCC-S-02322, found undefined identifier</em></strong> for <strong>macros</strong> and throws the following error in case of <strong>typedef data types</strong>:</p>
  
  <p><em><strong>PCC-S-02201, Encountered the symbol "SHORT" when expecting one of the following:</em></strong></p>
  
  <p><em>auto, char, const, double, enum, extern, float, int, long,</em>
     *ulong_varchar, OCIBFileLocator OCIBlobLocator,*
     <em>OCIClobLocator, OCIDateTime, OCIExtProcContext, OCIInterval,</em>
     <em>OCIRowid, OCIDate, OCINumber, OCIRaw, OCIString, register,</em>
     *short, signed, sql_context, sql_cursor, static, struct,*
     <em>typedef, union, unsigned, utext, uvarchar, varchar, void,</em>
     <em>volatile, a typedef name, a precompiled header, exec oracle,</em>
     <em>exec oracle begin, exec, exec sql, exec sql begin,</em>
     <em>exec sql end, exec sql type, exec sql var, exec sql include,</em></p>
  
  <p><em><strong>The symbol "enum," was substituted for "SHORT" to continue.</em></strong></p>
  
  <p>Please suggest. Thanks</p>