digitalmars.D.bugs - [Issue 7186] New: Only the first exported extern(C) function has underscore prefix
- d-bugmail puremagic.com (24/24) Dec 30 2011 http://d.puremagic.com/issues/show_bug.cgi?id=7186
- d-bugmail puremagic.com (7/7) Dec 30 2011 http://d.puremagic.com/issues/show_bug.cgi?id=7186
- d-bugmail puremagic.com (13/13) Dec 31 2011 http://d.puremagic.com/issues/show_bug.cgi?id=7186
- d-bugmail puremagic.com (7/7) Dec 31 2011 http://d.puremagic.com/issues/show_bug.cgi?id=7186
- d-bugmail puremagic.com (7/7) Dec 31 2011 http://d.puremagic.com/issues/show_bug.cgi?id=7186
http://d.puremagic.com/issues/show_bug.cgi?id=7186 Summary: Only the first exported extern(C) function has underscore prefix Product: D Version: D2 Platform: Other OS/Version: Windows Status: NEW Severity: major Priority: P2 Component: DMD AssignedTo: nobody puremagic.com ReportedBy: andrej.mitrovich gmail.com --- Comment #0 from Andrej Mitrovic <andrej.mitrovich gmail.com> 2011-12-30 17:04:13 PST --- See attachment. When the DLL is built the exported symbols are: _foo1 foo2 foo3 AFAIK on Windows all exported C functions have an underscore prefix. You can use DLL Export Viewer to see the symbols: http://www.nirsoft.net/utils/dllexp.zip -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Dec 30 2011
http://d.puremagic.com/issues/show_bug.cgi?id=7186 --- Comment #1 from Andrej Mitrovic <andrej.mitrovich gmail.com> 2011-12-30 17:04:44 PST --- Created an attachment (id=1063) DLLExportBug -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Dec 30 2011
http://d.puremagic.com/issues/show_bug.cgi?id=7186 Rainer Schuetze <r.sagitario gmx.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |r.sagitario gmx.de Resolution| |DUPLICATE --- Comment #2 from Rainer Schuetze <r.sagitario gmx.de> 2011-12-31 01:11:54 PST --- issue 3956 has slightly more info, so I'm closing this one as a duplicate *** This issue has been marked as a duplicate of issue 3956 *** -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Dec 31 2011
http://d.puremagic.com/issues/show_bug.cgi?id=7186 --- Comment #3 from Rainer Schuetze <r.sagitario gmx.de> 2011-12-31 01:13:55 PST --- Forgot to mention the workaround: list the symbols to export in the linker definition file. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Dec 31 2011
http://d.puremagic.com/issues/show_bug.cgi?id=7186 --- Comment #4 from Andrej Mitrovic <andrej.mitrovich gmail.com> 2011-12-31 08:53:49 PST --- Thanks for the workaround. I find it amusing that we've used the exact same function names in the sample, lol. :p -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Dec 31 2011