On Thursday, 10 April 2025 at 13:44:19 UTC, kinke wrote:
MinGW isn't supported by DMD and LDC. If you can't use an MS Visual C++ toolchain to build that webview.obj (and all libs it depends on), you could give GDC a try.

This question was actually dumb, dmd and ldc do support MingW:
I should have created a .lib file instead of using the object file directly:

`g++ -c libs/webview/webview.cc -std=c++14 -Ilibs/webview2 -static-libstdc++ -static-libgcc -DWEBVIEW_STATIC -o webview.o`

`ar r webview.lib webview.o`

... and used that with dmd/ldc instead.
For the duplicate symbols in ldc adding the flag `--mscrtlib=<libcmt[d]|msvcrt[d]>` worked.

Reply via email to