Can you create a library with LDC and link to it with clang++?

Ruby The Roobster michaeleverestc79 at
Wed Sep 23 23:31:52 UTC 2020

Can you create a library(.lib) with ldc and port it to clang++?

module test;
import std.stdio;
void hi()

//test.cpp(links to test.lib which contains test.hi
#include <iostream>
extern "D" void hi();
void main() {
//Hopefully prints "hi"

More information about the Digitalmars-d mailing list