亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

  免費(fèi)注冊(cè) 查看新帖 |

Chinaunix

  平臺(tái) 論壇 博客 文庫(kù)
最近訪問(wèn)板塊 發(fā)新帖
查看: 3503 | 回復(fù): 3
打印 上一主題 下一主題

HP-UX11.31(IA)+Oracle11g編譯Proc程序警告 [復(fù)制鏈接]

論壇徽章:
0
跳轉(zhuǎn)到指定樓層
1 [收藏(0)] [報(bào)告]
發(fā)表于 2012-04-23 10:20 |只看該作者 |倒序?yàn)g覽
dgocrm@BL870003:/dgocrm/src$make mytest
        proc iname=mytest.pc  include=/dgocrm/include

Pro*C/C++: Release 11.2.0.3.0 - Production on Mon Apr 23 10:17:42 2012

Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.

System default option values taken from: /oracle/product/11.2.0/db_1/precomp/adg

        cc  -c -DDEBUG0 -g +DD64 -I/dgocrm/include -I/oracle/product/11.2.0/db_
"mytest.c", line 117: warning #2837-D: omission of explicit type is
          nonstandard ("int" assumed)
  extern sqlcxt ( void **, unsigned int *,
         ^

"mytest.c", line 119: warning #2837-D: omission of explicit type is
          nonstandard ("int" assumed)
  extern sqlcx2t( void **, unsigned int *,
         ^

"mytest.c", line 121: warning #2837-D: omission of explicit type is
          nonstandard ("int" assumed)
  extern sqlbuft( void **, char * );
         ^

"mytest.c", line 122: warning #2837-D: omission of explicit type is
          nonstandard ("int" assumed)
  extern sqlgs2t( void **, char * );
         ^

"mytest.c", line 123: warning #2837-D: omission of explicit type is
          nonstandard ("int" assumed)
  extern sqlorat( void **, unsigned int *, void * );
         ^

        #rm -f mytest.c
        rm -f mytest.lis
        cc  -o mytest mytest.o -DDEBUG0 -g +DD64 -I/dgocrm/include -I/oracle/pr
        rm -f mytest.o
        cp mytest.pc /dgocrm/srcbak
        mv mytest /dgocrm/bin
dgocrm@BL870003:/dgocrm/src$

論壇徽章:
0
2 [報(bào)告]
發(fā)表于 2012-04-23 10:28 |只看該作者
在生成的mytest.c文件中顯示信息:
/* SQLLIB Prototypes */
extern sqlcxt (/*_ void **, unsigned long *,
                   struct sqlexd *, struct sqlcxp * _*/);
extern sqlcx2t(/*_ void **, unsigned long *,
                   struct sqlexd *, struct sqlcxp * _*/);
extern sqlbuft(/*_ void **, char * _*/);
extern sqlgs2t(/*_ void **, char * _*/);
extern sqlorat(/*_ void **, unsigned long *, void * _*/);

把上述信息中定義的函數(shù)前面增加“int”再次編譯可以通過(guò),但是查看很多例子,都不需要增加“int”,不知道什么原因,請(qǐng)各位大俠幫忙分析。謝謝!
extern int sqlcxt (/*_ void **, unsigned long *,
                   struct sqlexd *, struct sqlcxp * _*/);
extern int sqlcx2t(/*_ void **, unsigned long *,
                   struct sqlexd *, struct sqlcxp * _*/);
extern int sqlbuft(/*_ void **, char * _*/);
extern int sqlgs2t(/*_ void **, char * _*/);
extern int sqlorat(/*_ void **, unsigned long *, void * _*/);

論壇徽章:
0
3 [報(bào)告]
發(fā)表于 2012-04-23 12:47 |只看該作者
修改 /oracle/product/11.2.0/db_1/precomp/admin的 pcscfg.cfg文件
CODE=ANSI_C
再次編譯程序,原先的警告信息沒(méi)有,最終成功完成,生產(chǎn)exe可執(zhí)行程序。呵呵
dgocrm@BL870003:/dgocrm/src$make mytest
        proc iname=mytest.pc  include=/dgocrm/include include=/oracle/product/1

Pro*C/C++: Release 11.2.0.3.0 - Production on Mon Apr 23 12:44:55 2012

Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.

System default option values taken from: /oracle/product/11.2.0/db_1/precomp/adg

        cc  -c -DDEBUG0 -g +DD64 -I/dgocrm/include -I/oracle/product/11.2.0/db_
        rm -f mytest.c
        rm -f mytest.lis
        cc  -o mytest mytest.o -DDEBUG0 -g +DD64 -I/dgocrm/include -I/oracle/pr
        rm -f mytest.o
        cp mytest.pc /dgocrm/srcbak
        mv mytest /dgocrm/bin
dgocrm@BL870003:/dgocrm/src$

論壇徽章:
14
巨蟹座
日期:2013-11-19 14:09:4615-16賽季CBA聯(lián)賽之青島
日期:2016-07-05 12:36:0515-16賽季CBA聯(lián)賽之廣東
日期:2016-06-29 11:45:542015亞冠之全北現(xiàn)代
日期:2015-07-22 08:09:472015年辭舊歲徽章
日期:2015-03-03 16:54:15巨蟹座
日期:2014-12-29 08:22:29射手座
日期:2014-12-05 08:20:39獅子座
日期:2014-11-05 12:33:52寅虎
日期:2014-08-13 09:01:31巳蛇
日期:2014-06-16 16:29:52技術(shù)圖書徽章
日期:2014-04-15 08:44:01天蝎座
日期:2014-03-11 13:06:45
4 [報(bào)告]
發(fā)表于 2012-04-24 11:12 |只看該作者
omission of explicit type is nonstandard ("int" assumed)
洋文的意思是
extern sqlcxt (……);
要寫上返回類型。在古老的C標(biāo)準(zhǔn)中不寫那么默認(rèn)返回int類型,但現(xiàn)代的C標(biāo)準(zhǔn)要求必須寫明
您需要登錄后才可以回帖 登錄 | 注冊(cè)

本版積分規(guī)則 發(fā)表回復(fù)

  

北京盛拓優(yōu)訊信息技術(shù)有限公司. 版權(quán)所有 京ICP備16024965號(hào)-6 北京市公安局海淀分局網(wǎng)監(jiān)中心備案編號(hào):11010802020122 niuxiaotong@pcpop.com 17352615567
未成年舉報(bào)專區(qū)
中國(guó)互聯(lián)網(wǎng)協(xié)會(huì)會(huì)員  聯(lián)系我們:huangweiwei@itpub.net
感謝所有關(guān)心和支持過(guò)ChinaUnix的朋友們 轉(zhuǎn)載本站內(nèi)容請(qǐng)注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP