【问题标题】:unable to run gtk apps compiled with gcc 4.4 (mingw)无法运行用 gcc 4.4 (mingw) 编译的 gtk 应用程序
【发布时间】:2012-09-13 23:41:33
【问题描述】:

我已经下载了适用于 windows 的 gtk all-in-one 软件包。我正在使用 -mms-bitfields 编译我的文件,但仍然出现错误,

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...

有什么想法吗?

阿迪尔。

【问题讨论】:

    标签: gtk mingw gcc4.4


    【解决方案1】:

    您应该在项目的属性中启用 -mms-bitfields。

    根据您使用的 IDE,可能会有所不同。

    在 NetBeans 中,右键单击您的项目。然后去 项目属性 -> C++ 编译器。展开 Compilation Line 并在 Additional Options 中输入 -mms-bitfields。确保配置设置为所有配置。重建你的项目。

    在 Code::Blocks 我认为你应该这样做,如下: 右键单击您的项目-> 构建选项。转到编译器设置 -> 其他选项并写入 -mms-bitfields。确保将此更改应用于整个项目(不仅仅是调试或发布)。重建您的项目。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-02-13
      • 1970-01-01
      • 2019-06-07
      • 1970-01-01
      • 2020-03-26
      相关资源
      最近更新 更多