簡體   English   中英

Cygwin:分析types.h中“ loff_t”之前的錯誤

[英]Cygwin: Parse error before “loff_t” in types.h

我試圖在Cygwin下“全部制作” zebra.tar.gz 我收到此錯誤:

In file included from /usr/include/sys/types.h:440,
                 from /usr/include/zconf.h:364,
                 from /usr/include/zlib.h:34,
                 from getcoeff.c:29:
/usr/include/cygwin/types.h:39: error: parse error before "loff_t"

任何Cygwin專家都可以解決此問題? 我今天剛剛安裝了Cygwin,所以它是最新版本。

問題是#define __linux__getcoeff.c線,其具有禁用__loff_t和各種其它類型的在/usr/include/machine/types.h的定義中,也許是因為在Linux那些類型在編譯器預定義的效果。

Cygwin當然不是Linux,即使它旨在實現兼容性。 定義這樣的系統配置宏對於應用程序是一個錯誤,也可能在其他非Linux系統上引起麻煩。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM