Skip to content

Commit 2c3e3cd

Browse files
committed
Merged 0.3.9 branch
1 parent 142f967 commit 2c3e3cd

File tree

136 files changed

+6544
-2952
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

136 files changed

+6544
-2952
lines changed

Diff for: Authors.txt

+3
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,6 @@ Sadruddin Rejeb
1010
Niels Elken S�nderby
1111
Enrico Sirola, StatPro Italia srl
1212
Liguo Song
13+
14+
QuantLib also includes code taken from Peter J�ckel's book "Monte Carlo
15+
Methods in Finance".

Diff for: ChangeLog.txt

+3,429-194
Large diffs are not rendered by default.

Diff for: Docs/Makefile.am

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ docs-html: .time-stamp-html
4646

4747
docs-html-dist: docs-html
4848
ln -s html QuantLib-docs-$(VERSION)-html
49-
tar chof - QuantLib-docs-$(VERSION)-html \
49+
tar chf - QuantLib-docs-$(VERSION)-html \
5050
| GZIP=--best gzip -c > QuantLib-docs-$(VERSION)-html.tar.gz
5151
rm QuantLib-docs-$(VERSION)-html
5252

@@ -96,7 +96,7 @@ docs-man: .time-stamp-man
9696

9797
docs-man-dist: docs-man
9898
ln -s man QuantLib-docs-$(VERSION)-man
99-
tar chof - QuantLib-docs-$(VERSION)-man \
99+
tar chf - QuantLib-docs-$(VERSION)-man \
100100
| GZIP=--best gzip -c > QuantLib-docs-$(VERSION)-man.tar.gz
101101
rm QuantLib-docs-$(VERSION)-man
102102

Diff for: Docs/pages/authors.docs

+3
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@
3636
- Enrico Sirola, StatPro Italia srl
3737
- Liguo Song
3838

39+
%QuantLib also includes code taken from Peter J�ckel's book "Monte Carlo
40+
Methods in Finance".
41+
3942
\section contributors Contributors
4043

4144
We gratefully acknowledge contributions from Xavier Abulker, Toyin

Diff for: Docs/pages/faq.docs

+63-1
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,38 @@
162162

163163
\section faq_build Building QuantLib
164164

165+
<strong>
166+
\anchor faq_compiling_mingw
167+
I'm having trouble building QuantLib with MinGW.
168+
</strong>
169+
170+
Terry August was kind enough to put together detailed instructions
171+
for MinGW users. They can be found at
172+
<http://www.stanford.edu/~taugust/quantlib.html>.
173+
174+
175+
<strong>
176+
\anchor faq_compiling_devcpp_choking
177+
When trying to compile QuantLib in the Dev-C++ IDE, I get an error
178+
saying that "Could not create makefile: C:\...\Makefile.win"
179+
</strong>
180+
181+
The message is misleading. Close the IDE, create an empty
182+
sub-directory named "build" in the same directory as the Dev-C++
183+
project, and retry.
184+
185+
186+
<strong>
187+
\anchor faq_compiling_missing_boost
188+
When building QuantLib, I get a compile error about a missing
189+
boost/something header.
190+
</strong>
191+
192+
As mentioned in the readme, QuantLib depends on the Boost library
193+
(http://www.boost.org). You must download and install it before
194+
building QuantLib.
195+
196+
165197
<strong>
166198
\anchor faq_linking_libboost_unit
167199
When building the test-suite, I encounter a linking error about
@@ -182,7 +214,37 @@
182214
libraries must be built as well; see
183215
http://www.boost.org/more/getting_started.html
184216
for instructions.
185-
217+
218+
<strong>
219+
\anchor faq_renaming_libboost_unit
220+
Ok, now I have the library; and the library path is set correctly.
221+
But I still cannot link!
222+
</strong>
223+
224+
You're using Dev-C++ or MinGW, aren't you? gcc is looking for a
225+
library called libboost_unit_test_framework-xxx.a, but the Boost
226+
installation process created a
227+
libboost_unit_test_framework-xxx.lib instead. Make a copy of the
228+
latter in the same location and rename the copy so that it has the
229+
correct extension.
230+
231+
<strong>
232+
\anchor faq_compiling_boost_1_32
233+
When building the test-suite, I encounter a number of compile
234+
errors. I'm using gcc and Boost 1.32.
235+
</strong>
236+
237+
This is a Boost problem; you have to apply a one-line patch to
238+
your Boost installation. Open
239+
boost/test/detail/wrap_stringstream.hpp and edit line 120,
240+
\code
241+
#if !defined(BOOST_NO_STD_LOCALE) && BOOST_WORKAROUND(BOOST_MSVC, >= 1310)
242+
\endcode
243+
so that it reads like:
244+
\code
245+
#if !defined(BOOST_NO_STD_LOCALE) && ( !defined(BOOST_MSVC) || BOOST_WORKAROUND(BOOST_MSVC, >= 1310))
246+
\endcode
247+
186248

187249
\section faq_using Using QuantLib
188250

Diff for: Docs/pages/history.docs

+8-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
/*! \page history Version history
2020

21-
<strong>Release 0.3.9 - March 2005</strong>
21+
<strong>Release 0.3.9 - April 2005</strong>
2222

2323
GLOBAL FEATURES
2424
- QL_SQRT, QL_MIN etc. deprecated in favor of std::sqrt,
@@ -49,10 +49,17 @@
4949
BlackScholesProcess. This avoids erroneous upcasts.
5050
- Partial fix for Bermudan swaptions with exercise lag (thanks to
5151
Luca Berardi for the report and discussion.)
52+
- Fix for analytic cap/floor engine; caplets/floorlets whose
53+
fixing is in the past are now calculated correctly (thanks to
54+
Aurelien Chanudet.)
5255

5356
CALENDARS
5457
- Added Bratislava and Prague calendars.
5558

59+
INDICES
60+
- Fixed calendars for LIBOR fixings (thanks to Daniele De
61+
Francesco.)
62+
5663
FINITE_DIFFERENCES FRAMEWORK
5764
- Migrated finite-difference pricers to pricing-engine framework
5865
(thanks to Joseph Wang.)

Diff for: Examples/AmericanOption/AmericanOption.dev

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ IsCpp=1
66
Type=1
77
Compiler=-D__GNUWIN32__ -W -fexceptions -finline-functions -DNDEBUG -DWIN32 -D_CONSOLE -D_MBCS -DNOMINMAX_@@_
88
CppCompiler=-D__GNUWIN32__ -W -fexceptions -finline-functions -DNDEBUG -DWIN32 -D_CONSOLE -D_MBCS -DNOMINMAX_@@_
9-
Includes=
9+
Includes=../..
1010
Linker=-lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -luuid -lodbc32 -lodbccp32 -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -luuid -lodbc32 -lodbccp32_@@_-lQuantLib-mgw-0_3_9_@@_
1111
Libs=..\..\lib
1212
UnitCount=2

Diff for: Examples/AmericanOption/Makefile.am

+5
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ AmericanOption_SOURCES = AmericanOption.cpp
1111
AmericanOption_LDADD = ../../ql/libQuantLib.la
1212

1313
EXTRA_DIST = \
14+
AmericanOption.dev \
1415
AmericanOption.dsp \
1516
AmericanOption.vcproj \
1617
AmericanOption_vc8.vcproj \
@@ -20,3 +21,7 @@ EXTRA_DIST = \
2021
.PHONY: examples
2122
examples: AmericanOption
2223

24+
dist-hook:
25+
mkdir -p $(distdir)/bin
26+
mkdir -p $(distdir)/build
27+

Diff for: Examples/AmericanOption/makefile.mak

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ QL_LIB_DIR = "$(QL_DIR)\lib"
2626
EXE_DIR = .\bin
2727

2828
# Options
29-
CC_OPTS = -vi- -I$(QL_INCLUDE_DIR)
29+
CC_OPTS = -vi- -I$(QL_INCLUDE_DIR) -w-8070
3030

3131
!ifdef _DEBUG
3232
CC_OPTS = $(CC_OPTS) -v -D_DEBUG

Diff for: Examples/BermudanSwaption/BermudanSwaption.dev

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ IsCpp=1
66
Type=1
77
Compiler=-D__GNUWIN32__ -W -fexceptions -finline-functions -DNDEBUG -DWIN32 -D_CONSOLE -D_MBCS -DNOMINMAX_@@_
88
CppCompiler=-D__GNUWIN32__ -W -fexceptions -finline-functions -DNDEBUG -DWIN32 -D_CONSOLE -D_MBCS -DNOMINMAX_@@_
9-
Includes=
9+
Includes=../..
1010
Linker=-lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -luuid -lodbc32 -lodbccp32 -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -luuid -lodbc32 -lodbccp32_@@_-lQuantLib-mgw-0_3_9_@@_
1111
Libs=..\..\lib
1212
UnitCount=2

Diff for: Examples/BermudanSwaption/Makefile.am

+5
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ BermudanSwaption_SOURCES = BermudanSwaption.cpp
1111
BermudanSwaption_LDADD = ../../ql/libQuantLib.la
1212

1313
EXTRA_DIST = \
14+
BermudanSwaption.dev \
1415
BermudanSwaption.dsp \
1516
BermudanSwaption.vcproj \
1617
BermudanSwaption_vc8.vcproj \
@@ -20,3 +21,7 @@ EXTRA_DIST = \
2021
.PHONY: examples
2122
examples: BermudanSwaption
2223

24+
dist-hook:
25+
mkdir -p $(distdir)/bin
26+
mkdir -p $(distdir)/build
27+

Diff for: Examples/BermudanSwaption/makefile.mak

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ QL_LIB_DIR = "$(QL_DIR)\lib"
2626
EXE_DIR = .\bin
2727

2828
# Options
29-
CC_OPTS = -vi- -I$(QL_INCLUDE_DIR)
29+
CC_OPTS = -vi- -I$(QL_INCLUDE_DIR) -w-8070
3030

3131
!ifdef _DEBUG
3232
CC_OPTS = $(CC_OPTS) -v -D_DEBUG

Diff for: Examples/DiscreteHedging/DiscreteHedging.dev

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ IsCpp=1
66
Type=1
77
Compiler=-D__GNUWIN32__ -W -fexceptions -finline-functions -DNDEBUG -DWIN32 -D_CONSOLE -D_MBCS -DNOMINMAX_@@_
88
CppCompiler=-D__GNUWIN32__ -W -fexceptions -finline-functions -DNDEBUG -DWIN32 -D_CONSOLE -D_MBCS -DNOMINMAX_@@_
9-
Includes=
9+
Includes=../..
1010
Linker=-lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -luuid -lodbc32 -lodbccp32 -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -luuid -lodbc32 -lodbccp32_@@_-lQuantLib-mgw-0_3_9_@@_
1111
Libs=..\..\lib
1212
UnitCount=2

Diff for: Examples/DiscreteHedging/Makefile.am

+5
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ DiscreteHedging_SOURCES = DiscreteHedging.cpp
1111
DiscreteHedging_LDADD = ../../ql/libQuantLib.la
1212

1313
EXTRA_DIST = \
14+
DiscreteHedging.dev \
1415
DiscreteHedging.dsp \
1516
DiscreteHedging.vcproj \
1617
DiscreteHedging_vc8.vcproj \
@@ -20,3 +21,7 @@ EXTRA_DIST = \
2021
.PHONY: examples
2122
examples: DiscreteHedging
2223

24+
dist-hook:
25+
mkdir -p $(distdir)/bin
26+
mkdir -p $(distdir)/build
27+

Diff for: Examples/DiscreteHedging/makefile.mak

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ QL_LIB_DIR = "$(QL_DIR)\lib"
2626
EXE_DIR = .\bin
2727

2828
# Options
29-
CC_OPTS = -vi- -I$(QL_INCLUDE_DIR)
29+
CC_OPTS = -vi- -I$(QL_INCLUDE_DIR) -w-8070
3030

3131
!ifdef _DEBUG
3232
CC_OPTS = $(CC_OPTS) -v -D_DEBUG

Diff for: Examples/EuropeanOption/EuropeanOption.dev

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ IsCpp=1
66
Type=1
77
Compiler=-D__GNUWIN32__ -W -fexceptions -finline-functions -DNDEBUG -DWIN32 -D_CONSOLE -D_MBCS -DNOMINMAX_@@_
88
CppCompiler=-D__GNUWIN32__ -W -fexceptions -finline-functions -DNDEBUG -DWIN32 -D_CONSOLE -D_MBCS -DNOMINMAX_@@_
9-
Includes=
9+
Includes=../..
1010
Linker=-lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -luuid -lodbc32 -lodbccp32 -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -luuid -lodbc32 -lodbccp32_@@_-lQuantLib-mgw-0_3_9_@@_
1111
Libs=..\..\lib
1212
UnitCount=2

Diff for: Examples/EuropeanOption/Makefile.am

+5
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ EuropeanOption_SOURCES = EuropeanOption.cpp
1111
EuropeanOption_LDADD = ../../ql/libQuantLib.la
1212

1313
EXTRA_DIST = \
14+
EuropeanOption.dev \
1415
EuropeanOption.dsp \
1516
EuropeanOption.vcproj \
1617
EuropeanOption_vc8.vcproj \
@@ -20,3 +21,7 @@ EXTRA_DIST = \
2021
.PHONY: examples
2122
examples: EuropeanOption
2223

24+
dist-hook:
25+
mkdir -p $(distdir)/bin
26+
mkdir -p $(distdir)/build
27+

Diff for: Examples/EuropeanOption/makefile.mak

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ QL_LIB_DIR = "$(QL_DIR)\lib"
2626
EXE_DIR = .\bin
2727

2828
# Options
29-
CC_OPTS = -vi- -I$(QL_INCLUDE_DIR)
29+
CC_OPTS = -vi- -I$(QL_INCLUDE_DIR) -w-8070 -w-8066 -w-8008
3030

3131
!ifdef _DEBUG
3232
CC_OPTS = $(CC_OPTS) -v -D_DEBUG

Diff for: Examples/Swap/Makefile.am

+5
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ SwapValuation_SOURCES = swapvaluation.cpp
1111
SwapValuation_LDADD = ../../ql/libQuantLib.la
1212

1313
EXTRA_DIST = \
14+
Swap.dev \
1415
Swap.dsp \
1516
Swap.vcproj \
1617
Swap_vc8.vcproj \
@@ -20,3 +21,7 @@ EXTRA_DIST = \
2021
.PHONY: examples
2122
examples: SwapValuation
2223

24+
dist-hook:
25+
mkdir -p $(distdir)/bin
26+
mkdir -p $(distdir)/build
27+

Diff for: Examples/Swap/Swap.dev

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ IsCpp=1
66
Type=1
77
Compiler=-D__GNUWIN32__ -W -fexceptions -finline-functions -DNDEBUG -DNOMINMAX -DWIN32 -D_CONSOLE -D_MBCS_@@_
88
CppCompiler=-D__GNUWIN32__ -W -fexceptions -finline-functions -DNDEBUG -DNOMINMAX -DWIN32 -D_CONSOLE -D_MBCS_@@_
9-
Includes=
9+
Includes=../..
1010
Linker=-lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -luuid -lodbc32 -lodbccp32 -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -luuid -lodbc32 -lodbccp32_@@_-lQuantLib-mgw-0_3_9_@@_
1111
Libs=..\..\lib
1212
UnitCount=1

Diff for: Examples/Swap/makefile.mak

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ QL_LIB_DIR = "$(QL_DIR)\lib"
2626
EXE_DIR = .\bin
2727

2828
# Options
29-
CC_OPTS = -vi- -I$(QL_INCLUDE_DIR)
29+
CC_OPTS = -vi- -I$(QL_INCLUDE_DIR) -w-8070
3030

3131
!ifdef _DEBUG
3232
CC_OPTS = $(CC_OPTS) -v -D_DEBUG

Diff for: Makefile.am

+2
Original file line numberDiff line numberDiff line change
@@ -52,3 +52,5 @@ docs-dist:
5252
docs-clean:
5353
$(MAKE) -C Docs docs-clean
5454

55+
dist-hook:
56+
mkdir -p $(distdir)/build

Diff for: News.txt

-1
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,4 @@ Changes since release 0.3.9:
77
Settings::instance().evaluationDate() = date;
88
registerWith(Settings::instance().evaluationDate());
99

10-
- Added risk premium to Vasicek model (thanks to Aurelien Chanudet.)
1110

Diff for: QuantLib.dev

+31-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[Project]
22
FileName=QuantLib.dev
33
Name=QuantLib
4-
UnitCount=614
4+
UnitCount=617
55
Type=2
66
Ver=1
77
ObjFiles=
@@ -6187,3 +6187,33 @@ Priority=1000
61876187
OverrideBuildCmd=0
61886188
BuildCmd=
61896189

6190+
[Unit615]
6191+
FileName=ql\Indexes\zibor.hpp
6192+
CompileCpp=1
6193+
Folder=Indexes
6194+
Compile=1
6195+
Link=1
6196+
Priority=1000
6197+
OverrideBuildCmd=0
6198+
BuildCmd=
6199+
6200+
[Unit616]
6201+
FileName=ql\Indexes\cdor.hpp
6202+
CompileCpp=1
6203+
Folder=Indexes
6204+
Compile=1
6205+
Link=1
6206+
Priority=1000
6207+
OverrideBuildCmd=0
6208+
BuildCmd=
6209+
6210+
[Unit617]
6211+
FileName=ql\Indexes\tibor.hpp
6212+
CompileCpp=1
6213+
Folder=Indexes
6214+
Compile=1
6215+
Link=1
6216+
Priority=1000
6217+
OverrideBuildCmd=0
6218+
BuildCmd=
6219+

Diff for: QuantLib.dsp

+12
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)