www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Names of C functions exported from a dll

reply Martin Drasar <drasar ics.muni.cz> writes:
Hi everybody,

I wanted to ask if there is any specific reason why the name of the 
first C function exported from a dll starts with underscore and any 
subsequesnt name does not.

Regards,
Martin

Disclaimer: I have already posted this as a subquestion in one D-Learn 
thread, but it did not get much attention...
Jan 02 2012
next sibling parent Rainer Schuetze <r.sagitario gmx.de> writes:
I think this is a linker bug: 
http://d.puremagic.com/issues/show_bug.cgi?id=3956

A workaround is to list the names in the linker definition file.

On 02.01.2012 14:06, Martin Drasar wrote:
 Hi everybody,

 I wanted to ask if there is any specific reason why the name of the
 first C function exported from a dll starts with underscore and any
 subsequesnt name does not.

 Regards,
 Martin

 Disclaimer: I have already posted this as a subquestion in one D-Learn
 thread, but it did not get much attention...

Jan 02 2012
prev sibling next sibling parent =?windows-1252?Q?Martin_Dra=9Aar?= <drasar ics.muni.cz> writes:
Dne 2.1.2012 20:02, Rainer Schuetze napsal(a):
 I think this is a linker bug:
 http://d.puremagic.com/issues/show_bug.cgi?id=3956

 A workaround is to list the names in the linker definition file.

Hi, thanks for the answer. It really looks like that bug... Am I the only one who regularly has mail threads torn into several separate threads? (which does real wonders for keeping the list readable) Martin
Jan 02 2012
prev sibling parent "Vladimir Panteleev" <vladimir thecybershadow.net> writes:
On Monday, 2 January 2012 at 21:39:42 UTC, Martin DraĊĦar wrote:
 Am I the only one who regularly has mail threads torn into 
 several separate threads? (which does real wonders for keeping 
 the list readable)

No. Most of it is due to a problem with the mailing list gateway. Its maintainer doesn't seem to want to acknowledge it or something.
Jan 03 2012