GtkD DLL issues

Mike Wey mike-wey at example.com
Tue Apr 23 13:43:58 PDT 2013


On 04/23/2013 10:26 PM, Jeff wrote:
> On Tuesday, 23 April 2013 at 20:24:33 UTC, Jeff wrote:
>> On Tuesday, 23 April 2013 at 20:21:51 UTC, Mike Wey wrote:
>>> On 04/23/2013 09:00 PM, Jeff wrote:
>>>> Trying out GtkD for the first time today, compiled one of the sample
>>>> applications and when I try to run it, it instantly crashes with the
>>>> following error message: "The image file C:\Program
>>>> Files\Intel\WiFi\bin\zlib1.dll is valid, but is for a machine type
>>>> other
>>>> than that current machine. Select OK to continue, or CANCEL to fail the
>>>> DLL load."
>>>>
>>>> I've looked around and found people with similar problems, but nothing
>>>> that seems to solve my problem.
>>>>
>>>> Using:
>>>> Windows 8 (64 bit)
>>>> DMD v2.062
>>>> GtkD v2.1.1
>>>>
>>>> Code:
>>>> import gtk.MainWindow;
>>>> import gtk.Label;
>>>> import gtk.Main;
>>>>
>>>> void main(string[] args)
>>>> {
>>>>    Main.init(args);
>>>>    MainWindow win = new MainWindow("Hello World");
>>>>    win.setDefaultSize(200, 100);
>>>>    win.add(new Label("Hello World"));
>>>>    win.showAll();
>>>>
>>>>    Main.run();
>>>> }
>>>>
>>>> Any help would be much appreciated.
>>>
>>> Are you compiling gtkD and the app as 32 or 64 bit?
>>> Did you install the matching Gtk+ runtime 32 or 64 bits?
>>>
>>> I looks like its pikking up a different version of a dll used by Gtk+
>>> and apperantly the Intel WiFi tools. But think it should loadthe
>>> right one if ist just 32 vs 64 bits.
>>
>> Both as 32.
>
> Oh, and using the 32-bit runtime as well.

Then it's indeed picing up the copy of zlib1.dll installed with the 
Intel WiFi tools instead of the one installed with Gtk+.

But i don't know what could be done about that.

-- 
Mike Wey


More information about the Digitalmars-d-learn mailing list