Re: Problem on QuantLib with /Clr support enabled

Posted by Nathan Abbott on
URL: http://quantlib.414.s1.nabble.com/Problem-on-QuantLib-with-Clr-support-enabled-tp5783p5784.html

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


Then you should recomple QuantLib. It should work after that.


On Mon, Mar 3, 2008 at 8:09 AM, weysy <[hidden email]> wrote:

Hi, i am new in quantlib and c++/clr. currently working on a project using
windows forms on Visual C++ 2005 express edition.

i tried the Equityoption example in a seperate project(and solution).
but i get all the output option prices as all "0" (with no error message) if
i turned on the /clr support.
everything is correct just without the /clr support on.

I have read the earlier post "C++ help needed: singleton.hpp" and tried to
add "inline" in singleton.hpp accordingly but unfortunately nothing changes
as the wrong number "0"s remain.

I have also tried the newest version QuantLib 0.9.0.

Appreciated if anyone can help or give any suggestion..
Thanks in advance.

Best regards,
Weysy


--
View this message in context: http://www.nabble.com/Problem-on-QuantLib-with--Clr-support-enabled-tp15807079p15807079.html
Sent from the quantlib-users mailing list archive at Nabble.com.


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


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