java思維

          正在學(xué)習(xí)中:(

          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?文件
          ???根據(jù)你的系統(tǒng)不同,大概像這樣

          				
          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、預(yù)編譯的時(shí)候加上?parse=none?選項(xiàng)
          ????proc?iname=***??parse=none

          3、編譯的時(shí)候要鏈接oracle的庫(kù)文件,?加選項(xiàng)?-lclntsh
          ?????下面是我參照別的網(wǎng)友的一個(gè)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 閱讀(11489) 評(píng)論(6)  編輯  收藏 所屬分類: Oracle Technology

          評(píng)論

          # re: PCC-S-02014, Encountered the symbol "..." when expecting one of the following: 2006-11-26 22:21 開發(fā)工程師

          預(yù)編譯的時(shí)候加上 parse=none 選項(xiàng)
          proc iname=*** parse=none
          即可解決錯(cuò)誤提示。  回復(fù)  更多評(píng)論   

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

          我也碰到了這個(gè)問題,但是加上parse=none后,所有的預(yù)編譯全部忽略了,而我代碼中有很多宏定義,還要去掉這些宏定義,否則報(bào)錯(cuò)。不知道還有沒有其他的解決辦法?  回復(fù)  更多評(píng)論   

          # 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;

          之間,再試試!  回復(fù)  更多評(píng)論   

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

          @yuli
          感謝!我試了一下,可行,兄弟聯(lián)系方式是什么?我yangbo0824@msn.com  回復(fù)  更多評(píng)論   

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

          這個(gè)問題我也遇到了,不過(guò)我的原因是使用條件編譯時(shí)少了一個(gè)#endif。加上后就編譯就通過(guò)了。
          所以建議還是先檢查一下是不是在使用條件編譯時(shí)缺少了什么。  回復(fù)  更多評(píng)論   

          # re: PCC-S-02014, Encountered the symbol "..." when expecting one of the following:[未登錄] 2010-09-09 15:20 風(fēng)

          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.  回復(fù)  更多評(píng)論   

          主站蜘蛛池模板: 惠州市| 南木林县| 健康| 合作市| 东明县| 绵阳市| 抚顺市| 县级市| 响水县| 建宁县| 红安县| 丹巴县| 博湖县| 昆明市| 衡阳县| 南康市| 白城市| 民勤县| 宁德市| 商都县| 广水市| 南宫市| 清涧县| 金沙县| 建德市| 灵寿县| 通海县| 伊通| 惠安县| 广州市| 翁牛特旗| 合肥市| 开平市| 宜宾市| 铜梁县| 鲁甸县| 阳山县| 绥中县| 游戏| 东乡族自治县| 南岸区|