|
From: Donghee S. <dh7...@gm...> - 2023-05-16 05:12:36
|
Dear Sweemer, Thanks for your kind comments. The errors occurred during the Built of the library. (In this built, both bond.cpp and actualactual.cpp must be included) To eliminate the error stating that the variables were not declared, I resorted to a workaround by modifying Days, Months, and Years to 2, 4, and 8 respectively, and completed the library build. And my application fixedratebond.cpp including the corresponding header files bond.hpp and actualactual.hpp files, using the linked library, runs successfully. But these modification is not normal, How can I fix this problem? Thanks again!!! Best Regards! Donghee Shim On Tue, May 16, 2023 at 5:52 AM Jonathan Sweemer <sw...@gm...> wrote: > Hi Donghee, > > Are you modifying the QuantLib source files directly? If so, then that’s > not the usual way to use the library. Usually what you should do is build > the library first, and then use that in your project by including the > headers and linking with it. > > If that’s not what you’re doing then I’ll need to see the complete build > log to provide more help. > > By the way, did you know that QuantLib is also available in python? It > might be faster to prototype your training exercise in python if you > haven’t tried yet. > > 2023년 5월 16일 (화) 00:08, Donghee Shim <dh7...@gm...>님이 작성: > >> Dear all of experts! >> >> My previous colleague had developed some programs for evaluating >> non-standard financial products (not included in QuantLib) using QuantLib >> with a test-suite approach! He named these code as analyticresolver. I’m >> trying to include a simple fixedratebond code to this analyticresolver for >> my training exercise. When I built with Cmake , errors (Days, Months, Years >> are not declared) occurred at both instruments/bond.cpp and >> time/daycounter/actualactual.cpp. When I included time/all.hpp at >> corresponding instruments/bond.hpp and time/daycounter/actualactual.hpp, >> the same errors occurred. (I changed the namespace QuantLib as >> anlyticsolver for every code files.) >> >> How can I fix this problem? >> >> Thanks!!! >> _______________________________________________ >> QuantLib-users mailing list >> Qua...@li... >> https://lists.sourceforge.net/lists/listinfo/quantlib-users >> > |