linking issue

David Nadlinger via digitalmars-d-ldc digitalmars-d-ldc at puremagic.com
Mon Nov 9 06:45:37 PST 2015


On 9 Nov 2015, at 3:32, Ellery Newcomer via digitalmars-d-ldc wrote:
> So what is happening is the main python library is static, so the 
> symbol ends up in the executable and the numpy shared library can't 
> seem to see it at run time (with the ldc build).
> […]
> Anyone know what might be the problem?

Did you try adding -rdynamic to the linker command line (e.g. using 
"-L-rdynamic" if you are linking with LDC)?

It is required to make all the symbols be written into ".dynsym". 
Otherwise, they might just as well be removed entirely in our case (due 
to --gc-sections).

  — David


More information about the digitalmars-d-ldc mailing list