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 閱讀(11487) 評論(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.  回復  更多評論   

          主站蜘蛛池模板: 吉木萨尔县| 宜章县| 万盛区| 弋阳县| 都兰县| 贵南县| 沿河| 葵青区| 镇雄县| 秭归县| 永安市| 南通市| 宁河县| 清远市| 尉氏县| 中西区| 龙里县| 奈曼旗| 伊春市| 平乐县| 鹤岗市| 邵东县| 彭水| 泉州市| 温泉县| 建平县| 长泰县| 邵东县| 双牌县| 平昌县| 页游| 襄汾县| 垣曲县| 涞水县| 贵溪市| 开原市| 台北市| 达州市| 惠州市| 调兵山市| 台南市|