[Issue 1695] implib produces wrong *.lib files

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Apr 7 01:23:30 PDT 2013


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


Walter Bright <bugzilla at digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|                            |WONTFIX


--- Comment #4 from Walter Bright <bugzilla at digitalmars.com> 2013-04-07 01:23:20 PDT ---
All /system does is prepend a _. See:

http://www.digitalmars.com/ctg/implib.html

The trouble is that the names in Windows systems DLLs use the extern (Windows)
calling convention, but they don't use the extern (Windows) mangled names. The
Windows mangled names have the @nn suffix.

The names happen to match up with the C names, but the stack treatment is
different, hence the crash.

There is nothing implib can do about this situation. The only thing you, as a
user, can do is create a correct module definition file in order to map the
internal and external names. Implib can't do that, as it doesn't have the
information to do it.

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