d and c ++ interfaces, like this.

extern(C++, cv){
extern(C++, class) struct Size_(T){
    @disable this();
	~this() { }

    final T area() const;
    final double aspectRatio() const;
    final bool empty() const;

    T width; //!< the width
    T height; //!< the height
}
}

Compile command like this:
link d.obj 常用.obj phobos2-ldc.lib druntime-ldc.lib
用微软的链接器with ldc2the compiler.

Published 440 original articles · won praise 29 · views 110 000 +

Guess you like

Origin blog.csdn.net/fqbqrr/article/details/104893846