1usage(3)                           QuantLib                           usage(3)
2
3
4

NAME

6       usage - .TH "usage" 3 "Thu Aug 19 2010" "Version 1.0.1" "QuantLib"
7

NAME

9       usage - To use QuantLib classes in your own code just add
10
11           #include <ql/quantlib.hpp>
12
13
14        at the beginning of your source/header files. Depending on the number
15       of your files in your project, this could cause a large increase in
16       compilation time. If this were not acceptable, collective headers are
17       also available for smaller parts of the library; in particular, each
18       subdirectory of the ql directory contains a file all.hpp which makes
19       available all classes and function in the respective subdirectory.
20
21       Under the Examples folder you can find examples of QuantLib usage,
22       including input files for automake and makefiles for the Borland free
23       compiler and Microsoft Visual C++. For the latter, project files are
24       also available.
25

Microsoft Visual C++

27       A few suggestions for Visual C++ users wanting to use QuantLib into
28       their own application:
29
30       1.  you won't have to explicitly link your application to the QuantLib
31           library. This is done automatically by compiler directives embedded
32           in the sources.
33
34       2.  Your project must be compiled with the same options that were used
35           in compiling the QuantLib library you're linking with, namely,
36
37         · Property Pages -> C/C++ -> Code Generation -> Runtime Library:
38           select the appropriate run-time library.
39
40         · Property Pages -> C/C++ -> Code Generation -> Basic Runtime Checks:
41           select 'Both (/RTC1, equiv. to /RTCsu)'.
42
43Version 1.0.1                   Thu Aug 19 2010                       usage(3)
Impressum