Re: a mysterious linking error introduced by import a library

2023-10-14 Thread Johann via D.gnu
On Saturday, 14 October 2023 at 19:01:53 UTC, Iain Buclaw wrote: On Saturday, 14 October 2023 at 17:53:01 UTC, Johann wrote: I cannot figure out this error is caused by `squiz_box` libray, `gdc` or `dub`. My apologies to you if I should have filed this bug in other places. Thanks for your atten

Re: a mysterious linking error introduced by import a library

2023-10-14 Thread Iain Buclaw via D.gnu
On Saturday, 14 October 2023 at 17:53:01 UTC, Johann wrote: I cannot figure out this error is caused by `squiz_box` libray, `gdc` or `dub`. My apologies to you if I should have filed this bug in other places. Thanks for your attention. Based on the symbol names, it could be this PR, which was

Re: a mysterious linking error introduced by import a library

2023-10-14 Thread Johann via D.gnu
On Saturday, 14 October 2023 at 18:15:11 UTC, Richard (Rikki) Andrew Cattermole wrote: The frontend will attempt to not emit all template instantiations if it thinks that the instantiation isn't used. However it sometimes get this wrong, so you have to override it and tell it to emit them all a

Re: a mysterious linking error introduced by import a library

2023-10-14 Thread Richard (Rikki) Andrew Cattermole via D.gnu
The frontend will attempt to not emit all template instantiations if it thinks that the instantiation isn't used. However it sometimes get this wrong, so you have to override it and tell it to emit them all anyway and let the linker do the eliding instead. This is a known problem of all the co

Re: a mysterious linking error introduced by import a library

2023-10-14 Thread Johann via D.gnu
On Saturday, 14 October 2023 at 17:58:27 UTC, Richard (Rikki) Andrew Cattermole wrote: This may be a simple case of template emission eliding. Did you try ``-fall-instantiations`` inside of a dflags directive? Yeah, that works perfectly, thank you a lot. This may be a simple case of templat

Re: a mysterious linking error introduced by import a library

2023-10-14 Thread Richard (Rikki) Andrew Cattermole via D.gnu
This may be a simple case of template emission eliding. Did you try ``-fall-instantiations`` inside of a dflags directive?

a mysterious linking error introduced by import a library

2023-10-14 Thread Johann via D.gnu
The following is a project created by `dub init`. dub.json ```json { "authors": [ "john" ], "dependencies": { "squiz-box": { "repository": "git+https://github.com/rtbo/squiz-box.git";, "versio