Is it possible to create a library with ldc and port it to LLVM

Ruby The Roobster michaeleverestc79 at gmail.com
Wed Sep 23 22:59:25 UTC 2020


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"


More information about the digitalmars-d-ldc mailing list