1usage(3) QuantLib usage(3)
2
3
4
6 usage - Usage To use QuantLib classes in your own code just add
7
8 #include <ql/quantlib.hpp>
9
10
11 at the beginning of your source/header files. Depending on the number
12 of your files in your project, this could cause a large increase in
13 compilation time. If this were not acceptable, collective headers are
14 also available for smaller parts of the library; in particular, each
15 subdirectory of the ql directory contains a file all.hpp which makes
16 available all classes and function in the respective subdirectory.
17
18 Under the Examples folder you can find examples of QuantLib usage,
19 including input files for automake and makefiles for the Borland free
20 compiler and Microsoft Visual C++. For the latter, project files are
21 also available.
22
24 A few suggestions for Visual C++ users wanting to use QuantLib into
25 their own application:
26
27 1. you won't have to explicitly link your application to the QuantLib
28 library. This is done automatically by compiler directives embedded
29 in the sources.
30
31 2. Your project must be compiled with the same options that were used
32 in compiling the QuantLib library you're linking with, namely,
33
34 · Property Pages -> C/C++ -> Code Generation -> Runtime Library:
35 select the appropriate run-time library.
36
37 · Property Pages -> C/C++ -> Code Generation -> Basic Runtime Checks:
38 select 'Both (/RTC1, equiv. to /RTCsu)'.
39
40Version 0.8.1 29 Oct 2007 usage(3)