Re: Problem on QuantLib with /Clr support enabled

Posted by Luigi Ballabio on
URL: http://quantlib.414.s1.nabble.com/Problem-on-QuantLib-with-Clr-support-enabled-tp5783p5785.html


On Mar 3, 2008, at 6:26 PM, Nathan Abbott wrote:
> I just tested the EquityOption project of QuantLib 0.9.0 with Boost
> 1.34.1 and Visual C++ 2005. The project works with both the \clr
> support on and off. My suggestion is that you comment lines 69 and 71
> in the singleton.hpp file.
>  For example.
>
> //#if defined(QL_PATCH_MSVC) && defined(_MANAGED)
> inline  // this seems to be required when CLR support is enabled
>  //#endif

Nathan,
        did you get any different behavior after commenting the #ifdef?
It sounds strange, since the /clr option defines _MANAGED, so the
inline should be preprocessed anyway.

Luigi


-------------------------------------------------------------------------
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-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users