On Thursday, 4 August 2022 at 20:59:50 UTC, Johan wrote:
On Thursday, 4 August 2022 at 20:29:30 UTC, Jan Allersma wrote:

So something goes wrong with linking, but I dont know what.

Execute `dmd -v` on some test program. It will output the linker line at the end of the output, the line starting with `cc yourcode.o -o yourcode ...`. On that linker line you will see what libraries to add in your CMake script, such that when linking the C++ program and D object files, it pulls in the libraries that D expects (standard library).

cheers,
  Johan

It's nice feature in D that we can mix C code with it, because I know C is so jealous language.

Reply via email to