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