1 Reply Latest reply: Apr 27, 2012 7:23 AM by Sudheendra RSS

    proC and nvarchar

    Guess2
      Client: 11.2.0.1
      DB: 10.2.0.5

      I am not a proC developer. One of our developers is trying to write some proC code. Before I go to support. I figure I woud go here. Doesn't look like proC is recognizing NVARCHAR?
      is it a librarty issue?
      Is there something that needs to be configured with the Pro*C compiler?
      This seems to indicate the Pro*C compiler doesn’t understand the data type:
      Pro*C/C++: Release 11.2.0.1.0 - Production on Tue Apr 17 21:08:22 2012
      
      Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.
      
      System default option values taken from: /opt/oracle/oracle11/precomp/admin/pcscfg.cfg
      
      Syntax error at line 5387, column 6, file mytestt.i:
      Error at line 5387, column 6 in file mytest.i
           nvarchar unicode_text[300];
      .....1
      PCC-S-02201, Encountered the symbol "nvarchar" when expecting one of the followi
      ng:
      
         auto, char, const, double, enum, extern, float, int, long,
         ulong_varchar, OCIBFileLocator OCIBlobLocator,
         OCIClobLocator, OCIDateTime, OCIExtProcContext, OCIInterval,
         OCIRowid, OCIDate, OCINumber, OCIRaw, OCIString, register,
         short, signed, sql_context, sql_cursor, static, struct,
         typedef, union, unsigned, utext, uvarchar, varchar, void,
         volatile, a typedef name, a precompiled header, exec oracle,
         exec oracle begin, exec, exec sql, exec sql begin,
         exec sql end, exec sql type, exec sql var, exec sql include,
      The symbol "enum," was substituted for "nvarchar" to continue.
      
      Error at line 0, column 0 in file ustrtest.i
      PCC-F-02102, Fatal error while doing C preprocessing
      *** Error exit code 1
      Edited by: Guess2 on Apr 18, 2012 12:19 PM