|
From: Jonathan S. <sw...@gm...> - 2023-04-04 22:23:01
|
Hi Donghee, 1. All of the cpp files including fixedratebond.cpp are compiled and then linked together into the QuantLib library, so yes they are essential in the way that the library is currently built. But as a user of the QuantLib library, you don’t need to use any of the features that you don’t need. 2. In order to use QuantLib::io::rate you will need to include the appropriate header file, just like using a function defined in any other library. Please trying adding the following line at the top of all files where you use QuantLib::io::rate: #include <ql/utilities/dataformatters.hpp> 2023년 4월 4일 (화) 23:48, Donghee Shim <dh7...@gm...>님이 작성: > Dear exports! > > Very sorry for my novice questions! > > I have 2 questions. > > What is the purpose of many .cpp files such as fixedratebond.cpp? Are they > essential in Quantlib? > > > > 2. At my code I used “std::cout << io::rate(couponRates[i])”, > > error occurred “error C2039: 'rate': is not member of 'QuantLib::io“ > > (I included using namespace QuantLib; at the front) > > When I attached the prefix “std::cout << > Quantlib::io::rate(couponRates[i])’, > > the same error occurred. > > > > Thanks! > > Best Regards > > Shim Donghee > _______________________________________________ > QuantLib-users mailing list > Qua...@li... > https://lists.sourceforge.net/lists/listinfo/quantlib-users > |