Link errors when compiling shared lib on windows

kinke noone at nowhere.com
Wed Nov 1 15:52:17 UTC 2017


On Wednesday, 1 November 2017 at 15:15:27 UTC, Daniel Fitzpatrick 
wrote:
> I am following this short tutorial on compiling a shared lib:
>
> https://wiki.dlang.org/Call_D_from_Ruby_using_FFI
>
> Because it's on Windows I am using these compiler options:
>
> -shared -m64 -defaultlib=libphobos2.so i.d
>
>
> However, I am receiving rather a lot of linker errors.  Not 
> sure what else to provide the compiler.

Try less, especially no `-defaultlib` overridden with a Linux 
shared-object. You'll have to edit the hardcoded `./i.so` in the 
example as well obviously.


More information about the Digitalmars-d mailing list