quantitative finance - Adding a new class in QuantLib and QuantLib-SWIG - Stack Overflow

admin2025-04-17  3

I have created a new class in QuantLib called fxSmileSection. I had no problem building and running the code in c++. However, when I tried add it to SWIG the code fails with the following error:

src/QuantLib/quantlib_wrap.cpp(12086): error C2039: 'fxSmileSection': is not a member of 'QuantLib'

I am following the instructions from here: .html

I also generated the swig wrapper (swig -c++ -python volatilities.i) and set the environment variables as in step 6 of the link above. However, the new class does not seem to be a member of QuantLib.

Any help would be much appreciated. Thanks

转载请注明原文地址:http://anycun.com/QandA/1744888441a89046.html