[Issue 6121] Can't link with DMC C++ generated functions with long arguments
http://d.puremagic.com/issues/show_bug.cgi?id=6121 Jonathan M Davis changed: What|Removed |Added CC||jmdavisp...@gmx.com --- Comment #1 from Jonathan M Davis 2011-06-11 15:30:54 PDT --- I believe that that's why druntime uses the alias c_long. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 6121] Can't link with DMC C++ generated functions with long arguments
http://d.puremagic.com/issues/show_bug.cgi?id=6121 --- Comment #2 from Andrej Mitrovic 2011-06-11 15:50:12 PDT --- Right, c_long is an alias to int on Windows. It still won't link, but a comment in another thread might lead me to believe that this is just a name-mangling problem. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 6121] Can't link with DMC C++ generated functions with long arguments
http://d.puremagic.com/issues/show_bug.cgi?id=6121 yebblies changed: What|Removed |Added Status|NEW |RESOLVED CC||yebbl...@gmail.com Resolution||INVALID --- Comment #3 from yebblies 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: ---
[Issue 6121] Can't link with DMC C++ generated functions with long arguments
https://issues.dlang.org/show_bug.cgi?id=6121 Andrei Alexandrescu changed: What|Removed |Added Version|unspecified |D2 --