線上訂房服務-台灣趴趴狗聯合訂房中心
發文 回覆 瀏覽次數:1376
推到 Plurk!
推到 Facebook!

程式可以執行,但仍有Warning產生

 
hsiang
一般會員


發表:2
回覆:4
積分:1
註冊:2003-03-30

發送簡訊給我
#1 引用回覆 回覆 發表時間:2004-04-14 14:49:30 IP:211.78.xxx.xxx 未訂閱
小弟我已經把大部分的Warning都去除了,但只剩下四個怎麼都去除不掉 雖不影響程式執行,但有點好奇,四個Warning如下所示: [C Warning] _prolog.h(49): W8059 Structure packing size has changed [C Warning] _prolog.h(21): W8059 Structure packing size has changed [C Warning] _epilog.h(34): W8059 Structure packing size has changed [C Warning] _epilog.h(40): W8059 Structure packing size has changed 請諸位有經驗的高手指教
dllee
站務副站長


發表:321
回覆:2519
積分:1711
註冊:2002-04-15

發送簡訊給我
#2 引用回覆 回覆 發表時間:2004-04-21 22:31:54 IP:211.76.xxx.xxx 未訂閱
由 google 找到與您很相近的問題及解答: http://lists.wxwidgets.org/archive/wx-users/msg16027.html    由 BCB5 的 Online Help    
引言: W8059 Structure packing size has changed Compiler warning (Command-line option to suppress warning: -w-pck) This warning message is issued when the structure alignment is different after including a file than it was before including that file. The intention is to warn you about cases where an include file changes structure packing, but by mistake doesn't restore the original setting at the end. If this is intentional, you can give a #pragma nopackwarning directive at the end of an include file to disable the warning for this file. The warning can be disabled altogether by #pragma warn -pck.
基本上如果有直接的問題,會是 Error,而 Warning 則需要自己去判斷是否真的有問題。而由 BCB5 的線上說明,最好的處理方式應該如網路找到的討論,將 Data Alignment 在所有的專案都設為 byte alignment 應該就可以了,可由 Project Options 中 Advanced Compiler 之 Data Alignment 設為 Byte。 沒空更新的網頁... http://dllee.ktop.com.tw C及指標教學,計算機概論,資訊管理導論... http://dllee.adsldns.org 介紹Shells,LiteStep,GeoShell....
------
http://www.ViewMove.com
hsiang
一般會員


發表:2
回覆:4
積分:1
註冊:2003-03-30

發送簡訊給我
#3 引用回覆 回覆 發表時間:2004-04-21 23:01:17 IP:211.76.xxx.xxx 未訂閱
dllee你真得是高手耶, 謝謝您感恩哦~
系統時間:2024-06-25 15:12:32
聯絡我們 | Delphi K.Top討論版
本站聲明
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。
2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。
3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇!