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

2015-06-09 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=6121

Andrei Alexandrescu and...@erdani.com changed:

   What|Removed |Added

Version|unspecified |D2

--


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

2011-06-12 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6121


yebblies yebbl...@gmail.com changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||yebbl...@gmail.com
 Resolution||INVALID


--- Comment #3 from yebblies yebbl...@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: ---


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

2011-06-11 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6121


Jonathan M Davis jmdavisp...@gmx.com changed:

   What|Removed |Added

 CC||jmdavisp...@gmx.com


--- Comment #1 from Jonathan M Davis jmdavisp...@gmx.com 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

2011-06-11 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6121



--- Comment #2 from Andrej Mitrovic andrej.mitrov...@gmail.com 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: ---