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-tp5783p5787.html

On Mon, 2008-03-03 at 11:42 -0800, Nathan Abbott wrote:
> No I did not do any thing different. The confusion is that I compile
> the QuantLib natively or unmanaged then I link it to a C++ class that
> is compile under the /clr flag.

Is this at all possible?

> For this to work, the inline must be inserted when I compile with
> the /clr is turn on and when the /clr is turn off. My suggestion is
> that you changed the singelton.hpp to something like thus.
>
> #if defined(QL_PATCH_MSVC)
> inline  // this seems to be required when CLR support is enabled
> #endif

Hmm, the inline might not work when CLR support is disabled. I checked
both configurations before release (at least under VC7.1) and without
CLR, the examples were failing with the inline (hence the switch.)

May you try recompiling everything natively with the inline and see
whether the test-suite and the examples work?

Thanks,
        Luigi


--

If I do not want others to quote me, I do not speak.
-- Phil Wayne



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