Using dlopen/dlsym

Mike Wey via Digitalmars-d digitalmars-d at puremagic.com
Tue Dec 27 10:12:42 PST 2016


On 12/27/2016 06:02 AM, Adam D. Ruppe wrote:
> On Tuesday, 27 December 2016 at 00:05:39 UTC, Andrei Alexandrescu wrote:
>> I'm building with no flags using dmd.
>
> Do dmd -v for verbose output and see what linker flags it is doing.
> Perhaps you have a configuration difference that is causing it not to
> export the symbol (`fun` isn't marked `export`... I don't think that
> matters on linux but it might on some versions or with some
> configurations).

dmd will need to pass "--export-dynamic" to the linker, so that the 
symbol is actually exported.

-- 
Mike Wey


More information about the Digitalmars-d mailing list