[Issue 7969] New: Writing Win32 DLLs page is outdated

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Apr 22 12:59:46 PDT 2012


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 at puremagic.com
        ReportedBy: maxim at maxim-fomin.ru


--- Comment #0 from Maxim Fomin <maxim at maxim-fomin.ru> 2012-04-22 13:00:45 PDT ---
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: -------


More information about the Digitalmars-d-bugs mailing list