Re: Name mangling problem with tiny Windows 10 load-time DLL example

2021-03-01 Thread Siemargl via Digitalmars-d-learn
On Sunday, 28 February 2021 at 23:00:56 UTC, WhatMeWorry wrote: On Sunday, 28 February 2021 at 22:10:21 UTC, Siemargl wrote: On Sunday, 28 February 2021 at 18:29:11 UTC, WhatMeWorry wrote: It seems pretty obvious the problem is with name mangling. But how to fix it? fixing int numb = 1;

Re: Name mangling problem with tiny Windows 10 load-time DLL example

2021-02-28 Thread WhatMeWorry via Digitalmars-d-learn
On Sunday, 28 February 2021 at 22:10:21 UTC, Siemargl wrote: On Sunday, 28 February 2021 at 18:29:11 UTC, WhatMeWorry wrote: It seems pretty obvious the problem is with name mangling. But how to fix it? fixing int numb = 1; and your example work correct ldc 1.24 / win10 P.S.I'm not

Re: Name mangling problem with tiny Windows 10 load-time DLL example

2021-02-28 Thread Siemargl via Digitalmars-d-learn
On Sunday, 28 February 2021 at 18:29:11 UTC, WhatMeWorry wrote: It seems pretty obvious the problem is with name mangling. But how to fix it? fixing int numb = 1; and your example work correct ldc 1.24 / win10 P.S.I'm not recommend using such keywords as 'file', may cross with other

Re: Name mangling problem with tiny Windows 10 load-time DLL example

2021-02-28 Thread Kagamin via Digitalmars-d-learn
mangleof should give _D4file6addOneFiZi, not _D6patron6addOneFiZi

Name mangling problem with tiny Windows 10 load-time DLL example

2021-02-28 Thread WhatMeWorry via Digitalmars-d-learn
It seems pretty obvious the problem is with name mangling. But how to fix it? -- module file; extern(D) export { int addOne(int i) { return (i + 1); } } -- module