Directory of Open Source for Quantitative Finance and Trading
Username: Password: Not registered?
 
Quick Search:    (AJAX based: No need to press button)

SmartFAQ is developed by The SmartFactory (http://www.smartfactory.ca), a division of InBox Solutions (http://www.inboxsolutions.net)

Changing .hpp files for experimenting in Quantlib/Dev C++/ Windows sometimes does not work.Is there a workaround?
Requested and Answered by Vanna on 31-Mar-2007 21:25 (1700 reads)
I noticed this problem when I tried adding a cout statement while changing FloatingRateCoupon.hpp file,eg:

inline Rate FloatingRateCoupon::rate() const {
Rate f = indexFixing();
std::cout << "inside FloatingRateCoupon::rate f=" << f << std::endl;
return gearing() * (f + convexityAdjustment(f)) + spread();
}

It never called the cout,even though everything compiled fine after I inserted the line.

It looks like the .hpp file compilation was actually ignored.
One fix for this I found was to add the following include in Cashflowvectors.cpp:
#include

after deleting the Cashflowvectors.o file in C:\Program Files\QuantLib-0.3.13\build\mingw, I could observe my change in code result.

NB: somebody may have a better idea, do post your suggestion!


Discuss or give feedback? Just enter your message and click on submit. No registration is required.

Note: A copy of this message will also be emailed to the submitter of this link

The comments are owned by the poster. We aren't responsible for their content.

Discuss or give feedback? Just enter your message and click on submit. No registration is required.

Note: A copy of this message will also be emailed to the submitter of this link
Similar Links:
pressing save button in dev c++ for bermudanswaption example project in Quantlib/dev c++/windows will cause hangup on the IDE. also projects take long time to open.is there a workaround? (FAQ)
Junior Quantitative Developer - Emerging Markets - Leading Investment Bank - Singapore (Job)
Desk Quant - Emerging Markets - Leading Investment Bank - Singapore - Asia (Job)
How can I get start with Quantlib in DEV C++ / Windows XP? (FAQ)
I have a windows XP box with no C++ software .How do I start using the program "Calibration of transition probability matrix using levmar" from ground up? (FAQ)
Copyright © 2011 QuantCode Inc. All rights reserved.