[gmx-developers] Making libgromacs a dynamic loadable object

Teemu Murtola teemu.murtola at gmail.com
Sun Sep 29 12:28:59 CEST 2013


On Sun, Sep 29, 2013 at 1:16 PM, Erik Lindahl <erik.lindahl at scilifelab.se>wrote:

> I suspect that by definition it is going to be too complicated to ask
> people to use dlsym() for all code they want to use, and then we have
> pretty much decided that we will need two separate libraries.
> However, even then I would prefer that the user does not have to interact
> with two different libraries, but that they only link to libgromacs.so,
> which in turn will bring in the right flavor of libgromacs_core.so.
> Or can we come up with any cleaner way to do it?

I don't think it is very easy to make it any cleaner than this. Since the
generic library anyways needs to wrap that factory call to the other
library, it can (as the simplest solution) simply expose this method also
to the code calling the generic binary.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://maillist.sys.kth.se/pipermail/gromacs.org_gmx-developers/attachments/20130929/51988c55/attachment.html>

More information about the gromacs.org_gmx-developers mailing list