CMake and D
pascal111
judas.the.messiah.111 at gmail.com
Thu Aug 4 22:57:54 UTC 2022
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.
More information about the Digitalmars-d-learn
mailing list