www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 7969] New: Writing Win32 DLLs page is outdated

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

           Summary: Writing Win32 DLLs page is outdated
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: minor
          Priority: P2
         Component: websites
        AssignedTo: nobody puremagic.com
        ReportedBy: maxim maxim-fomin.ru



---
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

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Apr 22 2012