Having trouble cross-compiling from linux to windows

TheZipCreator thezipcreator at protonmail.com
Sat Jan 14 22:20:35 UTC 2023


On Saturday, 14 January 2023 at 20:24:06 UTC, ryuukk_ wrote:
> If i remember correctly, you need to make sure you have
>
> ```
> "x86_64-.*-windows-msvc":
> {
>     switches = [
>         "-defaultlib=phobos2-ldc,druntime-ldc",
>     ];
>     lib-dirs = [
>         "%%ldcbinarypath%%/../lib-win64",
>     ];
> };
> ```
>
> in ``$LDC_PATH/etc/ldc2.conf ``
>
>
> Here is how dscanner is doing it: 
> https://github.com/dlang-community/D-Scanner/blob/master/setup-ldc-windows.sh
>
> I wonder why they need to do all of that, it should work out of 
> the box.. that's weird

I've added that and I still get the same errors.


More information about the digitalmars-d-ldc mailing list