Rechercher une page de manuel
usage
Langue: en
Version: 381351 (fedora - 01/12/10)
Section: 3 (Bibliothèques de fonctions)
Sommaire
NAME
usage - .TH "usage" 3 "Thu Aug 19 2010" "Version 1.0.1" "QuantLib"NAME
usage - To use QuantLib classes in your own code just add#include <ql/quantlib.hpp>
at the beginning of your source/header files. Depending on the number of your files in your project, this could cause a large increase in compilation time. If this were not acceptable, collective headers are also available for smaller parts of the library; in particular, each subdirectory of the ql directory contains a file all.hpp which makes available all classes and function in the respective subdirectory.
Under the Examples folder you can find examples of QuantLib usage, including input files for automake and makefiles for the Borland free compiler and Microsoft Visual C++. For the latter, project files are also available.
Microsoft Visual C++
A few suggestions for Visual C++ users wanting to use QuantLib into their own application:
- 1.
- you won't have to explicitly link your application to the QuantLib library. This is done automatically by compiler directives embedded in the sources.
- 2.
- Your project must be compiled with the same options that were used in compiling the QuantLib library you're linking with, namely,
- *
- Property Pages -> C/C++ -> Code Generation -> Runtime Library: select the appropriate run-time library.
- *
- Property Pages -> C/C++ -> Code Generation -> Basic Runtime Checks: select 'Both (/RTC1, equiv. to /RTCsu)'.
Contenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre