how to export callbacks on win64?

captaindet via digitalmars-d-ldc digitalmars-d-ldc at puremagic.com
Mon Oct 24 21:09:33 PDT 2016


On 2016-10-25 16:28, Jacob wrote:
> On Tuesday, 25 October 2016 at 03:23:41 UTC, captaindet wrote:
>> however, using ldc2-1.1.0-beta3-win64 w/ VS2015 i get the following
>> GTK warning "Could not find signal handler 'myCallback'.  Did you
>> compile with -rdynamic?"
>
>
> What are you trying to do? Make a D shared library on windows? LDC might
> not export the functions making them visible. If you are making a DLL
> you might try using a .def file with the linker.
> https://msdn.microsoft.com/en-us/library/d91k01sh.aspx

negative. building an executable that happens to have callback functions 
that shall be called by GTK dynamic libraries. again: this compiles fine 
with DMD -m64 (and -m32). (also, creating extra .def files is not an 
option in my case)


More information about the digitalmars-d-ldc mailing list