D with gmp via swig

Oliver oliver.ruebenkoenig at web.de
Sun Aug 14 06:03:30 PDT 2011


== Quote from David Nadlinger (see at klickverbot.at)'s article
> On 8/14/11 2:34 PM, Oliver wrote:
> > /opt/usr/local/bin/gdc main.d gmpd.d gmpd_im.d -I. -L. -lgmpd_wrap
> You don't need to link the .so in (although I'm surprised to see that it
> produces linker errors, I didn't remember that there are name collisions
> with the default settings), it will be loaded at runtime.
> This decision was made to easily support Windows, where the COFF/OMF
> situation complicates matters a lot…
> David

David, thanks this seems to work.

/opt/usr/local/bin/gdc main.d gmpd.d gmpd_im.d

I did have to copy the libgmpd_wrap* to some place were the linker could find it,
of course.

Oliver


More information about the Digitalmars-d-learn mailing list