Swig C# looking for slightly different .lib file, how to configure

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

Swig C# looking for slightly different .lib file, how to configure

EdStone
He guys:


Upon compiling the QuantLib 0.9 solution in VS2005, get I QuantLib-vc80-mt-gd-0_9_0.lib.
When compiling solution for Swig C#, compiler is looking for QuantLib-vc80-mt-sgd-0_9_0.lib (additional s in front of -gd).  What is the difference and how to configure?


Thanks in advance.

- Edward
Reply | Threaded
Open this post in threaded view
|

Re: Swig C# looking for slightly different .lib file, how to configure

Luigi Ballabio
On Thu, 2008-01-10 at 03:33 -0800, EdStone wrote:
> Upon compiling the QuantLib 0.9 solution in VS2005, get I
> QuantLib-vc80-mt-gd-0_9_0.lib.
> When compiling solution for Swig C#, compiler is looking for
> QuantLib-vc80-mt-sgd-0_9_0.lib (additional s in front of -gd).  What is the
> difference and how to configure?

Hi Edward,
        apologies for the delay. The generated libraries have different names
depending on the configuration (Release, Debug etc.)  I think the one
you have compiled is "Debug CRTDLL". For C#, you're using the "Debug"
configuration instead, hence the mismatch. To fix it, you'll have to
select the same configuration in both projects.

This said, I suggest you use "Release" or "Release CRTDLL" unless you
actually want to debug the library. Either one runs much faster than the
debug versions.

Luigi


--

Cogito ergo I'm right and you're wrong.
-- Blair Houghton



-------------------------------------------------------------------------
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