[Issue 3717] Stack corruption when returning a struct from a C function in a MinGW generated shared library

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Jan 18 21:20:17 PST 2010


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


Walter Bright <bugzilla at digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |bugzilla at digitalmars.com
         Resolution|                            |WONTFIX


--- Comment #1 from Walter Bright <bugzilla at digitalmars.com> 2010-01-18 21:20:15 PST ---
Dmd for Windows was designed to work with the Digital Mars C compiler (dmc),
not any other. dmc follows the conventional C abi for Windows (also followed by
Microsoft C and Borland C). Apparently, MinGW does not.

I suggest using the Windows calling convention when working with MinGW.

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