Problem with GC - linking C++ & D (with gdc)

Claude claudemr at live.fr
Tue Apr 26 13:36:19 UTC 2022


On Tuesday, 26 April 2022 at 12:49:21 UTC, Alain De Vos wrote:
> PS :
> I use
> ```
> ldc2 --gcc=cc ,
> cc -v : clang version 11.0.1
> ```

We only have gcc in our toolchain (we target an ARM-based 
embedded system).

---

I also encountered problems while I was trying to use CTFE only 
functions (using betterC so I don't have to link 
phobos/D-runtime).

However, if those functions use the GC for instance (like 
appending a dynamic-array), it will require me to link D-runtime, 
whereas I only use them at compile-time. So I'm a bit confused... 
I'll try and get more information and reduce a code sample.


More information about the Digitalmars-d-learn mailing list