mortoray/quantlib — comment on commit dbf6b23429b21cccb0982d6f3e5c13f5860842e1
File: ql/patterns/singleton.hpp line 95
By mortoray:

This is highly toolchain dependent, but normally, no, not if quantlib is
a dynamic/shared library. The DLL/so will have a dependency on
boost_thread, but the user of quantlib shouldn't have to list that directly.

If they use the static library it really depends on the tools. Libtool
should probably figure out the dependency on its own. In any case, this
change eliminates the biggest need for a static library. People should
just use the shared library -- since the default shared library now
offers custom sessions.

On 02/12/2012 03:33 PM, Luigi Ballabio wrote:
> Oh, I see. But wouldn't one have to link anyway just because one _uses_ the singleton?
> As soon as I call `create` and `SingletonInstanceLoader` is executed, I'll have to link to libboost_thread even if I'm not using multiple sessions.
>
> ---
> Reply to this email directly or view it on GitHub:
> https://github.com/mortoray/quantlib/commit/dbf6b23429b21cccb0982d6f3e5c13f5860842e1#commitcomment-957764
>
>

--
edA-qa mort-ora-y
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Sign: Please digitally sign your emails.
Encrypt: I'm also happy to receive encrypted mail.