2012-09-13 32 views
0

我已經下載了用於windows的gtk一體化軟件包。我用-mms-bitfields編譯我的文件,但仍然出現錯誤,無法運行使用gcc 4.4(mingw)編譯的gtk應用程序

Gtk-ERROR **: Incompatible build! 
The code using GTK+ thinks GtkBox is of different 
size than it actually is in this build of GTK+. 
On Windows, this probably means that you have compiled 
your code with gcc without the -mms-bitfields switch, 
or that you are using an unsupported compiler. 
aborting... 

任何想法?

Adeel。

回答

1

您應該在項目的屬性中啓用-mms-bitfields。

根據您使用的IDE,它可能有點不同。

在NetBeans中,右鍵單擊您的項目。然後轉到 項目屬性 - > C++編譯器。展開編輯行並在其他選項中輸入-mms-bitfields。確保「配置」設置爲「全部配置」。重建你的項目。

在Code :: Blocks我認爲你應該這樣做,如下所示: 右鍵單擊你的項目 - > Build Options。轉到編譯器設置 - >其他選項並寫入-mms-bitfields。確保將此更改應用於整個項目(而不僅僅是調試或發佈)。重建你的項目。