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

Ruby The Roobster michaeleverestc79 at gmail.com
Wed Sep 23 23:31:52 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 mailing list