It seems that page http://dlang.org/dll.html#Dcode is outdated for dmd 2.059.
1) dmd -c mydll -g -> Error: non-final switch statement without a default if deprecated.
Although it is not error, but both files contain delete operator which is flawed here.
2) dmd mydll.obj mydll.def -g -L/map -> ok
3) implib /noi /system mydll.lib mydll.dll -> ok
4) dmd test mydll.lib -g -> Error: module gs is in file 'std\gc.d' which cannot be read
After removing it there is new Error: function mydll.MyClass.concat (char[] a, char[] b) is not callable using argument types (string,string)
test.d(63): Error: cannot implicitly convert expression ("Hello") of type string
to char[]
test.d(63): Error: cannot implicitly convert expression ("world!") of type string to char[]
After fixing it linker (8.00.12) issues error: Symbol Undefined _D5mydll12__ModuleInfoZ
5) dmd test -version=DYNAMIC_LOAD -g -> also fails because of undefined symbol
Comment #1 by andrej.mitrovich — 2014-04-23T11:02:53Z