Compiling ql as DLL

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Compiling ql as DLL

imachabeli
Is there any particular reason that auto_link.hpp contains this line ?

#define QL_LIB_NAME "QuantLib-" QL_LIB_TOOLSET QL_LIB_THREAD_OPT QL_LIB_RT_OPT "-" QL_LIB_VERSION ".lib"
#pragma comment(lib, QL_LIB_NAME)

This means that all programs have to link to static version (at least having lib extension) of library
Besides project files for VS8 contain hardcoded name and even though configuration name says CRTDLL it is configured to make static lib




E-mail for the greater good. <a href='http://im.live.com/Messenger/IM/Join/Default.aspx?source=EML_WL_ GreaterGood' target='_new'>Join the i’m Initiative from Microsoft.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev
Reply | Threaded
Open this post in threaded view
|

Re: Compiling ql as DLL

Luigi Ballabio
On Thu, 2008-05-29 at 16:04 -0400, Irakli Machabeli wrote:

> Is there any particular reason that auto_link.hpp contains this line ?
>
> #define QL_LIB_NAME "QuantLib-" QL_LIB_TOOLSET QL_LIB_THREAD_OPT
> QL_LIB_RT_OPT "-" QL_LIB_VERSION ".lib"
> #pragma comment(lib, QL_LIB_NAME)
>
> This means that all programs have to link to static version (at least
> having lib extension) of library
> Besides project files for VS8 contain hardcoded name and even though
> configuration name says CRTDLL it is configured to make static lib

Hi Irakli,
        "CRTDLL" means that programs will link to the DLL version of the C++
runtime. As for QuantLib itself, it generates a static library in all
configurations (we were never able to create it as a DLL under
Windows...)

Luigi


--

The Feynman Problem Solving Algorithm:
1) Write down the problem.
2) Think very hard.
3) Write down the solution.



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev