java思维

正在学习中:(

PCC-S-02014, Encountered the symbol "..." when expecting one of the following:

proc cpp_suffix=cpp code=cpp txsPublic.pcc define=__linux UNSAFE_NULL=YES MODE=ORACLE DBMS=V8 CHAR_MAP=STRING INCLUDE=/home/tax/100/src/public/include INCLUDE=/home/tax/100/src/server/include INCLUDE=/usr/oracle/product/9.2.0/precomp/public

Pro*C/C++: Release 9.2.0.6.0 - Production on Fri Nov 24 17:07:54 2006
Syntax error at line 52, column 37, file /usr/include/c++/3.4.3/bits/concept_check.h:
Error at line 52, column 37 in file /usr/include/c++/3.4.3/bits/concept_check.h
#define __glibcxx_function_requires(...)
....................................1
PCC-S-02014, Encountered the symbol "..." when expecting one of the following:

   ) an identifier, define, elif, else, endif, error, if, ifdef,
   ifndef,
解决方法:
1、配置好 $ORACLE_HOME/precomp/admin/pcscfg.cfg 文件
   根据你的系统不同,大概像这样

				
sys_include=(/usr/lib/gcclib/i386redhatlinux/3.2.2/include,/u01/oracle/product/8.1.7/precomp/public,/usr/include,/usr/include/sys)
include=(/u01/oracle/product/8.1.7/precomp/public)
include=/u01/oracle/product/8.1.7/precomp/hdrs
include=/u01/oracle/product/8.1.7/tpcc2x_2/src
include=/u01/oracle/product/8.1.7/precomp/precomp/include
include=/u01/oracle/product/8.1.7/precomp/oracore/include
include=/u01/oracle/product/8.1.7/precomp/oracore/public
include=/u01/oracle/product/8.1.7/precomp/rdbms/include
include=/u01/oracle/product/8.1.7/precomp/rdbms/public
include=/u01/oracle/product/8.1.7/precomp/rdbms/demo
include=/u01/oracle/product/8.1.7/precomp/nlsrtl/include
include=/u01/oracle/product/8.1.7/precomp/nlsrtl/public
include=/u01/oracle/product/8.1.7/precomp/network_src/include
include=/u01/oracle/product/8.1.7/precomp/network_src/public
include=/u01/oracle/product/8.1.7/precomp/network/include
include=/u01/oracle/product/8.1.7/precomp/network/public
include=/u01/oracle/product/8.1.7/precomp/plsql/public
ltype=short


   
2、预编译的时候加上 parse=none 选项
    proc iname=***  parse=none

3、编译的时候要链接oracle的库文件, 加选项 -lclntsh
     下面是我参照别的网友的一个makefile文件,
   

INCLDIR= -I. -I/u01/oracle/product/8.1.7/precomp/public -I/u01/oracle/product/8.1.7/rdbms/public -I/u01/oracle/product/8.1.7/rdbms/demo -I/u01/oracle/product/8.1.7/plsql/public -I/u01/oracle/product/8.1.7/network/public 

DFLAGS= -DPRECOMP -DLINUX -D_GNU_SOURCE -DSLTS_ENABLE -DSLMXMX_ENABLE -D_REENTRANT -DNS_THREADS

CFLAGS= -O3

LIBPATH= -L/u01/oracle/product/8.1.7/lib/

LIBS=-lclntsh `cat /u01/oracle/product/8.1.7/lib/sysliblist` -ldl -lm

myproc:myproc.pc
proc parse=no iname=myproc.pc include=$(ORACLE_HOME)/precomp/public
gcc  -o $@ $@.c -I$(ORACLE_HOME)/precomp/public -L$(ORACLE_HOME)/lib -lclntsh -lclient8 $(LIBPATH) $(LIBS)

clean:
rm *.lis myproc.c myproc

posted on 2006-11-24 11:04 john 阅读(11399) 评论(6)  编辑  收藏 所属分类: Oracle Technology

评论

# re: PCC-S-02014, Encountered the symbol "..." when expecting one of the following: 2006-11-26 22:21 开发工程师

预编译的时候加上 parse=none 选项
proc iname=*** parse=none
即可解决错误提示。  回复  更多评论   

# re: PCC-S-02014, Encountered the symbol "..." when expecting one of the following:[未登录] 2009-01-08 10:51 thomas

我也碰到了这个问题,但是加上parse=none后,所有的预编译全部忽略了,而我代码中有很多宏定义,还要去掉这些宏定义,否则报错。不知道还有没有其他的解决办法?  回复  更多评论   

# re: PCC-S-02014, Encountered the symbol "..." when expecting one of the following: 2009-01-08 21:30 yuli

把这些宏定义放到 EXEC SQL BEGIN DECLARE SECTION;

EXEC SQL END DECLARE SECTION;

之间,再试试!  回复  更多评论   

# re: PCC-S-02014, Encountered the symbol "..." when expecting one of the following:[未登录] 2009-01-13 11:45 thomas

@yuli
感谢!我试了一下,可行,兄弟联系方式是什么?我yangbo0824@msn.com  回复  更多评论   

# re: PCC-S-02014, Encountered the symbol "..." when expecting one of the following:[未登录] 2010-09-07 11:02 xiaoyu

这个问题我也遇到了,不过我的原因是使用条件编译时少了一个#endif。加上后就编译就通过了。
所以建议还是先检查一下是不是在使用条件编译时缺少了什么。  回复  更多评论   

# re: PCC-S-02014, Encountered the symbol "..." when expecting one of the following:[未登录] 2010-09-09 15:20

ORA-06550: line 5, column 11:
PLS-00103: Encountered the symbol "PRO_GETNAME" when expecting one of the following:

:= . ( @ % ; immediate
The symbol ":=" was substituted for "PRO_GETNAME" to continue.  回复  更多评论   


只有注册用户登录后才能发表评论。


网站导航: