[Issue 6121] Can't link with DMC C++ generated functions with long arguments

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Jun 12 05:13:12 PDT 2011


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


yebblies <yebblies at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |yebblies at gmail.com
         Resolution|                            |INVALID


--- Comment #3 from yebblies <yebblies at gmail.com> 2011-06-12 05:08:33 PDT ---
This _is_ a name mangling problem.  D's long is not the same as C's long (at
least not on x86) and should not be mangled the same.  There is currently no
way to have dmd mangle a C or C++ function with a C long argument.

As dmd is working as designed, I'm going to close this as invalid.  You should
reopen as an enhancement request if you think dmd should be changed to do
things differently. (There is also already an enhancement request issue 2698
which would solve your problem)

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