Re: Extern C and Symbol Mangling

2017-05-26 Thread MGW via Digitalmars-d-learn
On Friday, 26 May 2017 at 12:49:27 UTC, Oleksii wrote: Hi, Call methods and property C++ from D. Interface C++ and D and their interaction. https://pp.userapi.com/c636630/v636630885/4657a/07wCn5hbHHo.jpg https://www.youtube.com/watch?v=HTgJaRRfLPk

Re: Extern C and Symbol Mangling

2017-05-26 Thread Oleksii via Digitalmars-d-learn
On Friday, 26 May 2017 at 12:51:20 UTC, Stanislav Blinov wrote: On Friday, 26 May 2017 at 12:49:27 UTC, Oleksii wrote: Hi, I'm trying to link against a DLL which exports a bunch of C functions. The issue is: C symbols do not have underscore prefix in Windows, but DMD sticks underscore in fron

Re: Extern C and Symbol Mangling

2017-05-26 Thread Stanislav Blinov via Digitalmars-d-learn
On Friday, 26 May 2017 at 12:49:27 UTC, Oleksii wrote: Hi, I'm trying to link against a DLL which exports a bunch of C functions. The issue is: C symbols do not have underscore prefix in Windows, but DMD sticks underscore in front of the symbol name. For example: `extern(C) void Foo()` become

Extern C and Symbol Mangling

2017-05-26 Thread Oleksii via Digitalmars-d-learn
Hi, I'm trying to link against a DLL which exports a bunch of C functions. The issue is: C symbols do not have underscore prefix in Windows, but DMD sticks underscore in front of the symbol name. For example: `extern(C) void Foo()` becomes `_Foo`. Is there a way to disable that underscore?