On Tue, 6 Nov 2018 22:12:47 +0100, Mike Wey wrote:

On 06-11-18 05:11, uiy wrote:

Everything was working before. I decided to update Gtk using master.

x64 works fine.

x32 says

gtkd.lib : warning LNK4003: invalid library format; library ignored

I compiled with dmd -m32 build.d (and without -m32)

stuck it in the appropriate directory (using pragma(lib,))..

Says it's invalid.

Seems it is a project problem but the error makes no sense given that it seems to work.

The lib is here:


I've also tried everything using -m32mscoff but same issue.

I as under the assumption that build.d would build for whatever architecture that it was built for?

I remember having to modify this before to get something like this to work but it was a while back and I think you messed with the build script quite a bit since then(by the looks of it).

Also the lib file is quite a bit smaller.

Any ideas what it might be?

Now if I link in the mscoff lib I do not get that error but I do get all the same missing externals.

The build script currently doesn't support m32mscoff, and the linker
error looks like one from the Microsoft linker.

When building with -m32 the dmd/digital mars linker should be used,
but they are both named link.exe so there might be an issue with the
PATH or dmd configuration.

Ok, Seems that a m32mscoff setting got checked in the project... I'm not sure how but that was the problem. (I don't remember checking it in the options but maybe I did or did something that triggered)