1config(3) QuantLib config(3)
2
3
4
6 config - .TH "config" 3 "Thu Aug 19 2010" "Version 1.0.1" "QuantLib"
7
9 config - A number of macros is provided for user configuration.
10 Defining or undefining such macros triggers variations in some library
11 functionality.
12
13 Under a Linux/Unix system, they are (un)set by configure; run
14
15 ./configure --help
16
17
18 for a list of corresponding command-line options.
19
20 Under a Windows system, they must be (un)defined by editing the file
21 <ql/userconfig.hpp> and commenting or uncommenting the relevant lines.
22
23 Such macros include:
24
25 #define QL_ERROR_FUNCTIONS
26
27 If defined, function information is added to the error messages thrown
28 by the library. Undefined by default.
29
30 #define QL_ERROR_LINES
31
32 If defined, file and line information is added to the error messages
33 thrown by the library. Undefined by default.
34
35 #define QL_ENABLE_TRACING
36
37 If enabled, tracing messages might be emitted by the library depending
38 on run-time settings. Enabling this option can degrade performance.
39 Undefined by default.
40
41 #define QL_NEGATIVE_RATES
42
43 If defined, negative yield rates are allowed in a few places where
44 they are currently forbidden. It is still not clear whether this is
45 safe. Undefined by default.
46
47 #define QL_EXTRA_SAFETY_CHECKS
48
49 If defined, extra run-time checks are added to a few functions. This
50 can prevent their inlining and degrade performance. Undefined by
51 default.
52
53 #define QL_TODAYS_PAYMENTS
54
55 If undefined (the default,) payments are considered to be settled at
56 the beginning of the day. Therefore, payments occurring at today's date
57 are not included in the NPV of an instrument.
58
59 #define QL_DISABLE_DEPRECATED
60
61 If defined, deprecated code will not be included in the library.
62 Undefined by default.
63
64 #define QL_USE_INDEXED_COUPON
65
66 If defined, indexed coupons (see the documentation) are used in
67 floating legs. If undefined (the default), par coupons are used.
68
69 #define QL_ENABLE_SESSIONS
70
71 If defined, singletons will return different instances for different
72 sessions. You will have to provide and link with the library a
73 sessionId() function in namespace QuantLib, returning a different
74 session id for each session.
75
76
77
78Version 1.0.1 Thu Aug 19 2010 config(3)