刚学proc,在aix下编译的时候报错,具体情况:
Aix系统版本6.1.0.0,64位操作系统。
数据库 oracle 10
xlC 8.0
xlC.adt.include 8.0.0.0 COMMITTED C Set ++ Application
xlC.aix61.rte 10.1.0.3 COMMITTED XL C/C++ Runtime for AIX 6.1
xlC.cpp 9.0.0.0 COMMITTED C for AIX Preprocessor
xlC.msg.en_US.cpp 9.0.0.0 COMMITTED C for AIX Preprocessor
xlC.msg.en_US.rte 10.1.0.3 COMMITTED XL C/C++ Runtime
xlC.rte 10.1.0.3 COMMITTED XL C/C++ Runtime
xlC.sup.aix50.rte 9.0.0.1 COMMITTED XL C/C++ Runtime for AIX 5.2下面是报错信息(文件中肯定没有特殊符号):Pro*C/C++: Release 10.2.0.4.0 - Production on Thu May 17 14:45:55 2012
Copyright (c) 1982, 2007, Oracle. All rights reserved.
Error at line 0, column 0 in file DbsTest.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 DbsTest.pc
PCC-F-02102, Fatal error while doing C preprocessing
Error at line 165, column 2 in file /usr/include/sys/dir.h
165 uint64_t d_offset; /* real off after this entry */
165 .1
165 PCC-S-02201, Encountered the symbol "uint64_t" when expecting one of th
e 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 751, column 38 in file /usr/include/sys/ras.h
751 #define AVOWX(_cond, _kerrno, _data, ... /* detail data*/)
\
751 .....................................1
751 PCC-S-02014, Encountered the symbol "..." when expecting one of the fol
lowing:
an identifier, define, elif, else, endif, error, if, ifdef,
ifndef, include, line, pragma, undef, exec, sql, begin, end,
var, type, oracle, an immediate preprocessor command,
a C token, create, function, package, procedure, trigger, or,
replace,
Error at line 758, column 2 in file /usr/include/sys/ras.h
758 #endif /* !defined(__cplusplus) && ... */
758 .1
758 PCC-S-02014, Encountered the symbol "endif" when expecting one of the f
ollowing:
a numeric constant, newline, define, error, if, ifdef,
ifndef, include, line, pragma, undef,
an immediate preprocessor command, a C token,
。。问问坛子里的兄弟姐妹,有没有遇到这个问题的啊,怎么解决的,给个建议啊
首先不是字符集的问题,比较简单的pc程序可以编译过去。
Aix系统版本6.1.0.0,64位操作系统。
数据库 oracle 10
xlC 8.0
xlC.adt.include 8.0.0.0 COMMITTED C Set ++ Application
xlC.aix61.rte 10.1.0.3 COMMITTED XL C/C++ Runtime for AIX 6.1
xlC.cpp 9.0.0.0 COMMITTED C for AIX Preprocessor
xlC.msg.en_US.cpp 9.0.0.0 COMMITTED C for AIX Preprocessor
xlC.msg.en_US.rte 10.1.0.3 COMMITTED XL C/C++ Runtime
xlC.rte 10.1.0.3 COMMITTED XL C/C++ Runtime
xlC.sup.aix50.rte 9.0.0.1 COMMITTED XL C/C++ Runtime for AIX 5.2下面是报错信息(文件中肯定没有特殊符号):Pro*C/C++: Release 10.2.0.4.0 - Production on Thu May 17 14:45:55 2012
Copyright (c) 1982, 2007, Oracle. All rights reserved.
Error at line 0, column 0 in file DbsTest.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 DbsTest.pc
PCC-F-02102, Fatal error while doing C preprocessing
Error at line 165, column 2 in file /usr/include/sys/dir.h
165 uint64_t d_offset; /* real off after this entry */
165 .1
165 PCC-S-02201, Encountered the symbol "uint64_t" when expecting one of th
e 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 751, column 38 in file /usr/include/sys/ras.h
751 #define AVOWX(_cond, _kerrno, _data, ... /* detail data*/)
\
751 .....................................1
751 PCC-S-02014, Encountered the symbol "..." when expecting one of the fol
lowing:
an identifier, define, elif, else, endif, error, if, ifdef,
ifndef, include, line, pragma, undef, exec, sql, begin, end,
var, type, oracle, an immediate preprocessor command,
a C token, create, function, package, procedure, trigger, or,
replace,
Error at line 758, column 2 in file /usr/include/sys/ras.h
758 #endif /* !defined(__cplusplus) && ... */
758 .1
758 PCC-S-02014, Encountered the symbol "endif" when expecting one of the f
ollowing:
a numeric constant, newline, define, error, if, ifdef,
ifndef, include, line, pragma, undef,
an immediate preprocessor command, a C token,
。。问问坛子里的兄弟姐妹,有没有遇到这个问题的啊,怎么解决的,给个建议啊
首先不是字符集的问题,比较简单的pc程序可以编译过去。
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货