Public imports with D interface files?

Sean Eskapp eatingstaples at gmail.com
Sat Sep 3 18:17:03 PDT 2011


I'm compiling a very simple D interface file:

    module std_ext.typetuple;

    public import std.typetuple

    class TypeArray(T...)
    {
    }

Compiling it as such:
    dmd -debug -unittest -D -Dddocs -w -H -o- std_ext/typetuple.d

And including it as such:

    import std_ext.typetuple;

    void main()
    {
        TypeArray!(int, double) blah;
    }

I get a linker error "Symbol Undefined _D7std_ext9typetuple12__ModuleInfoZ"

Removing the public import removes this error. How can I fix this?


More information about the Digitalmars-d-learn mailing list