Having trouble cross-compiling from linux to windows
TheZipCreator
thezipcreator at protonmail.com
Sun Jan 15 16:33:18 UTC 2023
On Sunday, 15 January 2023 at 11:21:46 UTC, kinke wrote:
> On Saturday, 14 January 2023 at 22:54:13 UTC, TheZipCreator
> wrote:
>> actually, nevermind. I tried to compile something more
>> substantial (my terminal game,
>> [qonquest](https://github.com/TheZipCreator/qonquest)) as a
>> test and I got the following errors:
>> [...]
>
> Not sure if that's the problem, but as mentioned on
> https://wiki.dlang.org/Cross-compiling_with_LDC, it is
> absolutely crucial that the Windows libs are copied from a
> Windows package *of the same version as your host LDC* (so that
> the bundled importable .d files match the prebuilt libs). You
> seem to be using a CI build (`…-git-501c657`), so the Windows
> package needs to be from the same CI build.
This did appear to be the issue. I reinstalled ldc2 from the same
release as where I got the windows libs and now it works
perfectly.
More information about the digitalmars-d-ldc
mailing list