[Issue 2106] export class doesn't affect, what is exported

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed May 14 04:33:56 PDT 2008


http://d.puremagic.com/issues/show_bug.cgi?id=2106





------- Comment #2 from the.yossarian at gmail.com  2008-05-14 06:33 -------
ok, the first is enough.
test case:


--- dll.d ---
module dll;

export class A 
{ 
        export void func() { }
}

--- test.d ---
import dll;

int main()
{
        A a = new A();
        return 0;
}

--- make.bat ---
dmd -ofdll.dll dll.d phobos.lib
dmd -oftest.exe test.d phobos.lib

dies with:
test.obj(test)
 Error 42: Symbol Undefined _D3dll1A7__ClassZ


-- 



More information about the Digitalmars-d-bugs mailing list