mike_chen 发表于 2005-07-13 11:07

proc预编译问题(已解决)

我写一个最简单的.pc程序,用proc编译时出现一堆错误信息,编译oracle里的demo也同样,说明不是程序的问题,但问题出在哪呢?precomp/pcscfg.cfg也指定了路径.
错误信息:

Pro*C/C++: Release 9.2.0.4.0 - Production on Wed Jul 13 11:01:23 2005

Copyright (c) 1982, 2002, Oracle Corporation.All rights reserved.

Error at line 0, column 0 in file sample1.pc
PCC-S-02201, Encountered the symbol "<eof>;" when expecting one of the following
:

   ; : an identifier, end-exec, random_terminal

Error at line 0, column 0 in file sample1.pc
PCC-F-02102, Fatal error while doing C preprocessing
Error at line 34, column 11 in file /usr/include/stdio.h
    34# include <stddef.h>;
    34..........1
    34PCC-S-02015, unable to open include file
Error at line 31, column 10 in file /usr/include/bits/types.h
    31#include <stddef.h>;
    31.........1
    31PCC-S-02015, unable to open include file
Error at line 14, column 10 in file /usr/include/_G_config.h
    14#include <stddef.h>;
    14.........1
    14PCC-S-02015, unable to open include file
Error at line 48, column 10 in file /usr/include/wchar.h
    48#include <stddef.h>;
    48.........1
    48PCC-S-02015, unable to open include file
Error at line 48, column 10 in file /usr/include/wchar.h
    48#include <stddef.h>;
    48.........1
    48PCC-S-02015, unable to open include file
Error at line 31, column 10 in file /usr/include/gconv.h
    31#include <stddef.h>;
    31.........1
    31PCC-S-02015, unable to open include file
Error at line 72, column 26 in file /usr/include/gconv.h
    72                              unsigned char **, size_t *, int, int);
    72.........................1
    72PCC-S-02201, Encountered the symbol "size_t" when expecting one of the
      following:
      
         ... auto, char, const, double, enum, 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,
         union, unsigned, utext, uvarchar, varchar, void, volatile,
         a typedef name, exec oracle, exec oracle begin, exec,
         exec sql, exec sql begin, exec sql type, exec sql var,
      The symbol "enum," was substituted for "size_t" to continue.
      
Error at line 88, column 7 in file /usr/include/gconv.h
    88                                    size_t *);
    88......1
    88PCC-S-02201, Encountered the symbol "size_t" when expecting one of the
      following:
      
         ... auto, char, const, double, enum, 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,
         union, unsigned, utext, uvarchar, varchar, void, volatile,
         a typedef name, exec oracle, exec oracle begin, exec,
         exec sql, exec sql begin, exec sql type, exec sql var,
      The symbol "enum," was substituted for "size_t" to continue.
      

Pro*C/C++: Release 9.2.0.4.0 - Production on Wed Jul 13 11:01:23 2005

Copyright (c) 1982, 2002, Oracle Corporation.All rights reserved.

Error at line 97, column 6 in file /usr/include/gconv.h
    97                                          size_t *);
    97.....1
    97PCC-S-02201, Encountered the symbol "size_t" when expecting one of the
      following:
      
         ... auto, char, const, double, enum, 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,
         union, unsigned, utext, uvarchar, varchar, void, volatile,
         a typedef name, exec oracle, exec oracle begin, exec,
         exec sql, exec sql begin, exec sql type, exec sql var,
      The symbol "enum," was substituted for "size_t" to continue.
      
Error at line 106, column 3 in file /usr/include/gconv.h
   106    __gconv_trans_fct __trans_fct;
   106..1
   106PCC-S-02201, Encountered the symbol "__gconv_trans_fct" when expecting
      one of the following:
      
         char, const, double, enum, float, int, long, ulong_varchar,
         OCIBFileLocator OCIBlobLocator, OCIClobLocator, OCIDateTime,
         OCIExtProcContext, OCIInterval, OCIRowid, OCIDate, OCINumber,
         OCIRaw, OCIString, short, signed, sql_context, sql_cursor,
         struct, union, unsigned, utext, uvarchar, varchar, void,
         volatile, a typedef name,
      
Error at line 53, column 11 in file /usr/include/libio.h
    53# include <stdarg.h>;
    53..........1
    53PCC-S-02015, unable to open include file
Error at line 33, column 10 in file /usr/include/string.h
    33#include <stddef.h>;
    33.........1
    33PCC-S-02015, unable to open include file
Error at line 33, column 10 in file /usr/include/stdlib.h
    33#include <stddef.h>;
    33.........1
    33PCC-S-02015, unable to open include file
Error at line 147, column 10 in file /usr/include/sys/types.h
   147#include <stddef.h>;
   147.........1
   147PCC-S-02015, unable to open include file
Error at line 25, column 10 in file /usr/include/alloca.h
    25#include <stddef.h>;
    25.........1
    25PCC-S-02015, unable to open include file

chestnut king 发表于 2005-07-19 17:48

proc预编译问题(已解决)

如何解决的??

hadefire 发表于 2005-09-28 12:07

proc预编译问题(已解决)

我也遇到相同的问题,请问是怎么解决的?

unixtsp 发表于 2012-08-31 16:06

我这也是!刚装好oracle11g。写了个简单程序测试一下!也出现这同样错误!请问你是怎么解决的?
页: [1]
查看完整版本: proc预编译问题(已解决)