digitalmars.D.ldc - Is it possible to create a library with ldc and port it to LLVM
- Ruby The Roobster (16/16) Sep 23 2020 Can you create a library(.lib) with ldc and port it to clang++?
- Johan (4/20) Sep 23 2020 See
- Ruby The Roobster (2/4) Sep 23 2020 Thanks.
Can you create a library(.lib) with ldc and port it to clang++? e.g. //test.d module test; import std.stdio; void hi() { writeln("hello"); } //test.cpp(links to test.lib which contains test.hi #include <iostream> extern "D" void hi(); void main() { hi(); } //Hopefully prints "hi"
Sep 23 2020
On Wednesday, 23 September 2020 at 22:59:25 UTC, Ruby The Roobster wrote:Can you create a library(.lib) with ldc and port it to clang++? e.g. //test.d module test; import std.stdio; void hi() { writeln("hello"); } //test.cpp(links to test.lib which contains test.hi #include <iostream> extern "D" void hi(); void main() { hi(); } //Hopefully prints "hi"See https://stackoverflow.com/questions/26923976/calling-a-d-function-directly-from-c
Sep 23 2020
On Wednesday, 23 September 2020 at 23:31:49 UTC, Johan wrote:See https://stackoverflow.com/questions/26923976/calling-a-d-function-directly-from-cThanks.
Sep 23 2020