Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想在我自己的 C++ 代码中包含用于选项希腊计算的 QuantLib 函数。我的问题是我可以只包含这些功能...我不想使用他们的其他东西。我显然不能只写
QuantLib::europeanOption.delta()
我已经包含了标题
#include <ql/quantlib.hpp> using namespace QuantLib;
我希望他们有一些好的文档。
您对编程、动态链接、Makefile 和其他方面的自在程度如何?
本质上,这里没有魔法。QL 有一个非常自由的许可证,你“仅仅”必须设置你的项目,以便它找到
并且这两个都可以通过分别调用quantlib-config适当的标志--clags和来自动化--libs。
quantlib-config
--clags
--libs
这实际上与链接到任何其他外部库没有什么不同。