Bug 7969 – Writing Win32 DLLs page is outdated

Status
RESOLVED
Resolution
WORKSFORME
Severity
minor
Priority
P2
Component
dlang.org
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-04-22T13:00:00Z
Last change time
2014-04-23T11:02:53Z
Keywords
dll
Assigned to
nobody
Creator
maxim

Comments

Comment #0 by maxim — 2012-04-22T13:00:45Z
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
Fixed in the DWiki (which is autoredirected from dlang.org): http://wiki.dlang.org/Win32_DLLs_in_D