編譯器的版本惹的禍

2021-05-02 03:18:28 字數 3803 閱讀 2583

in file included from /opt/host/armv4l/lib/gcc-lib/armv4l-redhat-linux/2.95.3/../../../../armv4l-redhat-linux/include/sys/select.h:31,

from /opt/host/armv4l/lib/gcc-lib/armv4l-redhat-linux/2.95.3/../../../../armv4l-redhat-linux/include/sys/time.h:30,

from rtc.c:13:

/opt/host/armv4l/lib/gcc-lib/armv4l-redhat-linux/2.95.3/../../../../armv4l-redhat-linux/include/bits/select.h:32: warning: `__fd_zero' redefined

/opt/host/armv4l/lib/gcc-lib/armv4l-redhat-linux/2.95.3/../../../../armv4l-redhat-linux/include/asm/posix_types.h:75: warning: this is the location of the previous definition

/opt/host/armv4l/lib/gcc-lib/armv4l-redhat-linux/2.95.3/../../../../armv4l-redhat-linux/include/bits/select.h:33: warning: `__fd_set' redefined

/opt/host/armv4l/lib/gcc-lib/armv4l-redhat-linux/2.95.3/../../../../armv4l-redhat-linux/include/asm/posix_types.h:63: warning: this is the location of the previous definition

/opt/host/armv4l/lib/gcc-lib/armv4l-redhat-linux/2.95.3/../../../../armv4l-redhat-linux/include/bits/select.h:34: warning: `__fd_clr' redefined

/opt/host/armv4l/lib/gcc-lib/armv4l-redhat-linux/2.95.3/../../../../armv4l-redhat-linux/include/asm/posix_types.h:67: warning: this is the location of the previous definition

/opt/host/armv4l/lib/gcc-lib/armv4l-redhat-linux/2.95.3/../../../../armv4l-redhat-linux/include/bits/select.h:35: warning: `__fd_isset' redefined

/opt/host/armv4l/lib/gcc-lib/armv4l-redhat-linux/2.95.3/../../../../armv4l-redhat-linux/include/asm/posix_types.h:71: warning: this is the location of the previous definition

in file included from /opt/host/armv4l/lib/gcc-lib/armv4l-redhat-linux/2.95.3/../../../../armv4l-redhat-linux/include/sys/time.h:30,

from rtc.c:13:

/opt/host/armv4l/lib/gcc-lib/armv4l-redhat-linux/2.95.3/../../../../armv4l-redhat-linux/include/sys/select.h:58: warning: `__nfdbits' redefined

/opt/host/armv4l/lib/gcc-lib/armv4l-redhat-linux/2.95.3/../../../../armv4l-redhat-linux/include/linux/posix_types.h:22: warning: this is the location of the previous definition

/opt/host/armv4l/lib/gcc-lib/armv4l-redhat-linux/2.95.3/../../../../armv4l-redhat-linux/include/sys/select.h:60: warning: `__fdmask' redefined

/opt/host/armv4l/lib/gcc-lib/armv4l-redhat-linux/2.95.3/../../../../armv4l-redhat-linux/include/linux/posix_types.h:34: warning: this is the location of the previous definition

in file included from /opt/host/armv4l/lib/gcc-lib/armv4l-redhat-linux/2.95.3/../../../../armv4l-redhat-linux/include/sys/time.h:26,

from rtc.c:13:

/opt/host/armv4l/lib/gcc-lib/armv4l-redhat-linux/2.95.3/../../../../armv4l-redhat-linux/include/time.h:70: warning: redefinition of `time_t'

/opt/host/armv4l/lib/gcc-lib/armv4l-redhat-linux/2.95.3/../../../../armv4l-redhat-linux/include/linux/types.h:69: warning: `time_t' previously declared here

in file included from /opt/host/armv4l/lib/gcc-lib/armv4l-redhat-linux/2.95.3/../../../../armv4l-redhat-linux/include/sys/time.h:30,

from rtc.c:13:

/opt/host/armv4l/lib/gcc-lib/armv4l-redhat-linux/2.95.3/../../../../armv4l-redhat-linux/include/sys/select.h:49: warning: redefinition of `suseconds_t'

/opt/host/armv4l/lib/gcc-lib/armv4l-redhat-linux/2.95.3/../../../../armv4l-redhat-linux/include/linux/types.h:22: warning: `suseconds_t' previously declared here

/opt/host/armv4l/lib/gcc-lib/armv4l-redhat-linux/2.95.3/../../../../armv4l-redhat-linux/include/sys/select.h:74: conflicting types for `fd_set'

/opt/host/armv4l/lib/gcc-lib/armv4l-redhat-linux/2.95.3/../../../../armv4l-redhat-linux/include/linux/types.h:13: previous declaration of `fd_set'

幾經周折才發現,原來是我用的編譯器版本太低,只支援編譯2.4核心相關的東東。而我是在2.6核心環境下進行的編譯,於是換了個更高版本的編譯器就搞定了。

都是新版本惹的禍

下了部 興沖沖的開啟來看,卻被windows media player 告知 遇到了乙個錯誤,是否要向ms報告,是否要重啟 嘗試了好幾次都是相同的結果。仔細觀察,發現每次開啟 然不行。沒辦法又把ac3filter解除安裝重灌,把vobsub解除安裝重灌,但都無濟於事。乾著急之時 相同的名字,結果又出...

編譯器和區域性變數惹的禍 驅動開發中讀片選的問題

wince6.0,fifo驅動程式採集ad資料。fifo驅動的ist中等待fifo的半滿中斷 下降沿觸發 等待成功後讀取fifo資料。在進入ist後,由於fifo已經開始採數,此時的fifo是全滿的,不會產生下降沿觸發的半滿中斷,因此實現需要清掉fifo裡面的資料,c 如下 void cfifode...

都是 IDENTITY惹的禍

前不久系統伺服器出現了一次不大不小事故,資料庫乙個表的資料不翼而飛,這個表雖然算不上頂級重要的表,但也算的上是個很重要的表,大家趕緊查是什麼把這個表的資料刪的只剩下180多條資料.為什麼還有180多條資料存在哪?真是挺讓人納悶的,但發現這180多條資料中有乙個共性,那就是那個不該為空的字段變成了空值...