Problem including quantlib.hpp

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

Problem including quantlib.hpp

J S-15
Hi all:
First, I am really excited to use this framework. Unfortunately I am
new to C++ and relatively new to Linx, which I am running this on with
g++. I have followed all the installation instructions and when I try
a simple program using the #include <ql/quantlib.hpp>, the program
does not find it. I search for quantlib.hpp and the only instance is
in the tarred directory from the download. Any ideas?


Reply | Threaded
Open this post in threaded view
|

Re: Problem including quantlib.hpp

J S-15
> Attached are text files containing the configure, make, and install
> output. It looks like there is a problem in the term structure section
> that is halting the process.

[root@furnace QuantLib-0.3.11]# ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gawk... (cached) gawk
checking for a BSD-compatible install... /usr/bin/install -c
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C preprocessor... gcc -E
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for a sed that does not truncate output... /bin/sed
checking for egrep... grep -E
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking how to run the C++ preprocessor... g++ -E
checking for g77... no
checking for f77... no
checking for xlf... no
checking for frt... no
checking for pgf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for f90... no
checking for xlf90... no
checking for pgf90... no
checking for epcf90... no
checking for f95... f95
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether f95 accepts -g... yes
checking the maximum length of command line arguments... 32768
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc static flag  works... yes
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
appending configuration tag "F77" to libtool
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for f95 option to produce PIC... -fPIC
checking if f95 PIC flag -fPIC works... yes
checking if f95 supports -c -o file.o... yes
checking whether the f95 linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking for M_PI... yes
checking for M_SQRT_2... no
checking for M_SQRTPI... no
checking for M_1_SQRTPI... no
checking for Boost development files... yes
checking Boost version... yes
checking for Boost unit-test framework... yes
checking whether Boost unit-test streams work... yes
checking long long support... yes
checking for emacs... no
checking for xemacs... no
checking where .elc files should go... ${datadir}/emacs/site-lisp
checking for doxygen... /usr/bin/doxygen
checking for sed... /bin/sed
checking for latex... /usr/bin/latex
checking for pdflatex... /usr/bin/pdflatex
checking for makeindex... /usr/bin/makeindex
checking for dvips... /usr/bin/dvips
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config/Makefile
config.status: creating ql/Makefile
config.status: creating ql/Calendars/Makefile
config.status: creating ql/CashFlows/Makefile
config.status: creating ql/Currencies/Makefile
config.status: creating ql/DayCounters/Makefile
config.status: creating ql/FiniteDifferences/Makefile
config.status: creating ql/Indexes/Makefile
config.status: creating ql/Instruments/Makefile
config.status: creating ql/Lattices/Makefile
config.status: creating ql/Math/Makefile
config.status: creating ql/MonteCarlo/Makefile
config.status: creating ql/Optimization/Makefile
config.status: creating ql/Patterns/Makefile
config.status: creating ql/Pricers/Makefile
config.status: creating ql/PricingEngines/Makefile
config.status: creating ql/PricingEngines/Asian/Makefile
config.status: creating ql/PricingEngines/Barrier/Makefile
config.status: creating ql/PricingEngines/Basket/Makefile
config.status: creating ql/PricingEngines/CapFloor/Makefile
config.status: creating ql/PricingEngines/Cliquet/Makefile
config.status: creating ql/PricingEngines/Forward/Makefile
config.status: creating ql/PricingEngines/Quanto/Makefile
config.status: creating ql/PricingEngines/Swaption/Makefile
config.status: creating ql/PricingEngines/Vanilla/Makefile
config.status: creating ql/Processes/Makefile
config.status: creating ql/RandomNumbers/Makefile
config.status: creating ql/ShortRateModels/Makefile
config.status: creating ql/ShortRateModels/CalibrationHelpers/Makefile
config.status: creating ql/ShortRateModels/OneFactorModels/Makefile
config.status: creating ql/ShortRateModels/TwoFactorModels/Makefile
config.status: creating ql/Solvers1D/Makefile
config.status: creating ql/TermStructures/Makefile
config.status: creating ql/Utilities/Makefile
config.status: creating ql/Volatilities/Makefile
config.status: creating functions/Makefile
config.status: creating functions/ql/Makefile
config.status: creating functions/ql/Functions/Makefile
config.status: creating man/Makefile
config.status: creating Docs/Makefile
config.status: creating Examples/Makefile
config.status: creating Examples/AmericanOption/Makefile
config.status: creating Examples/BermudanSwaption/Makefile
config.status: creating Examples/DiscreteHedging/Makefile
config.status: creating Examples/EuropeanOption/Makefile
config.status: creating Examples/Swap/Makefile
config.status: creating test-suite/Makefile
config.status: creating quantlib-config
config.status: creating QuantLib.spec
config.status: creating ql/config.hpp
config.status: ql/config.hpp is unchanged
config.status: executing depfiles commands

-------------------------------------------


[root@furnace QuantLib-0.3.11]# make
Making all in config
make[1]: Entering directory `/root/downloads/QuantLib-0.3.11/config'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/root/downloads/QuantLib-0.3.11/config'
Making all in ql
make[1]: Entering directory `/root/downloads/QuantLib-0.3.11/ql'
make  all-recursive
make[2]: Entering directory `/root/downloads/QuantLib-0.3.11/ql'
Making all in Calendars
make[3]: Entering directory `/root/downloads/QuantLib-0.3.11/ql/Calendars'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/root/downloads/QuantLib-0.3.11/ql/Calendars'
Making all in CashFlows
make[3]: Entering directory `/root/downloads/QuantLib-0.3.11/ql/CashFlows'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/root/downloads/QuantLib-0.3.11/ql/CashFlows'
Making all in Currencies
make[3]: Entering directory `/root/downloads/QuantLib-0.3.11/ql/Currencies'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/root/downloads/QuantLib-0.3.11/ql/Currencies'
Making all in DayCounters
make[3]: Entering directory `/root/downloads/QuantLib-0.3.11/ql/DayCounters'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/root/downloads/QuantLib-0.3.11/ql/DayCounters'
Making all in FiniteDifferences
make[3]: Entering directory
`/root/downloads/QuantLib-0.3.11/ql/FiniteDifferences'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory
`/root/downloads/QuantLib-0.3.11/ql/FiniteDifferences'
Making all in Indexes
make[3]: Entering directory `/root/downloads/QuantLib-0.3.11/ql/Indexes'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/root/downloads/QuantLib-0.3.11/ql/Indexes'
Making all in Instruments
make[3]: Entering directory `/root/downloads/QuantLib-0.3.11/ql/Instruments'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/root/downloads/QuantLib-0.3.11/ql/Instruments'
Making all in Lattices
make[3]: Entering directory `/root/downloads/QuantLib-0.3.11/ql/Lattices'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/root/downloads/QuantLib-0.3.11/ql/Lattices'
Making all in Math
make[3]: Entering directory `/root/downloads/QuantLib-0.3.11/ql/Math'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/root/downloads/QuantLib-0.3.11/ql/Math'
Making all in MonteCarlo
make[3]: Entering directory `/root/downloads/QuantLib-0.3.11/ql/MonteCarlo'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/root/downloads/QuantLib-0.3.11/ql/MonteCarlo'
Making all in Optimization
make[3]: Entering directory `/root/downloads/QuantLib-0.3.11/ql/Optimization'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/root/downloads/QuantLib-0.3.11/ql/Optimization'
Making all in Patterns
make[3]: Entering directory `/root/downloads/QuantLib-0.3.11/ql/Patterns'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/root/downloads/QuantLib-0.3.11/ql/Patterns'
Making all in Pricers
make[3]: Entering directory `/root/downloads/QuantLib-0.3.11/ql/Pricers'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/root/downloads/QuantLib-0.3.11/ql/Pricers'
Making all in PricingEngines
make[3]: Entering directory `/root/downloads/QuantLib-0.3.11/ql/PricingEngines'
Making all in Asian
make[4]: Entering directory
`/root/downloads/QuantLib-0.3.11/ql/PricingEngines/Asian'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory
`/root/downloads/QuantLib-0.3.11/ql/PricingEngines/Asian'
Making all in Barrier
make[4]: Entering directory
`/root/downloads/QuantLib-0.3.11/ql/PricingEngines/Barrier'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory
`/root/downloads/QuantLib-0.3.11/ql/PricingEngines/Barrier'
Making all in Basket
make[4]: Entering directory
`/root/downloads/QuantLib-0.3.11/ql/PricingEngines/Basket'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory
`/root/downloads/QuantLib-0.3.11/ql/PricingEngines/Basket'
Making all in CapFloor
make[4]: Entering directory
`/root/downloads/QuantLib-0.3.11/ql/PricingEngines/CapFloor'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory
`/root/downloads/QuantLib-0.3.11/ql/PricingEngines/CapFloor'
Making all in Cliquet
make[4]: Entering directory
`/root/downloads/QuantLib-0.3.11/ql/PricingEngines/Cliquet'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory
`/root/downloads/QuantLib-0.3.11/ql/PricingEngines/Cliquet'
Making all in Forward
make[4]: Entering directory
`/root/downloads/QuantLib-0.3.11/ql/PricingEngines/Forward'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory
`/root/downloads/QuantLib-0.3.11/ql/PricingEngines/Forward'
Making all in Quanto
make[4]: Entering directory
`/root/downloads/QuantLib-0.3.11/ql/PricingEngines/Quanto'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory
`/root/downloads/QuantLib-0.3.11/ql/PricingEngines/Quanto'
Making all in Swaption
make[4]: Entering directory
`/root/downloads/QuantLib-0.3.11/ql/PricingEngines/Swaption'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory
`/root/downloads/QuantLib-0.3.11/ql/PricingEngines/Swaption'
Making all in Vanilla
make[4]: Entering directory
`/root/downloads/QuantLib-0.3.11/ql/PricingEngines/Vanilla'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory
`/root/downloads/QuantLib-0.3.11/ql/PricingEngines/Vanilla'
make[4]: Entering directory `/root/downloads/QuantLib-0.3.11/ql/PricingEngines'
make[4]: Nothing to be done for `all-am'.
make[4]: Leaving directory `/root/downloads/QuantLib-0.3.11/ql/PricingEngines'
make[3]: Leaving directory `/root/downloads/QuantLib-0.3.11/ql/PricingEngines'
Making all in Processes
make[3]: Entering directory `/root/downloads/QuantLib-0.3.11/ql/Processes'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/root/downloads/QuantLib-0.3.11/ql/Processes'
Making all in RandomNumbers
make[3]: Entering directory `/root/downloads/QuantLib-0.3.11/ql/RandomNumbers'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/root/downloads/QuantLib-0.3.11/ql/RandomNumbers'
Making all in ShortRateModels
make[3]: Entering directory `/root/downloads/QuantLib-0.3.11/ql/ShortRateModels'
Making all in CalibrationHelpers
make[4]: Entering directory
`/root/downloads/QuantLib-0.3.11/ql/ShortRateModels/CalibrationHelpers'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory
`/root/downloads/QuantLib-0.3.11/ql/ShortRateModels/CalibrationHelpers'
Making all in OneFactorModels
make[4]: Entering directory
`/root/downloads/QuantLib-0.3.11/ql/ShortRateModels/OneFactorModels'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory
`/root/downloads/QuantLib-0.3.11/ql/ShortRateModels/OneFactorModels'
Making all in TwoFactorModels
make[4]: Entering directory
`/root/downloads/QuantLib-0.3.11/ql/ShortRateModels/TwoFactorModels'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory
`/root/downloads/QuantLib-0.3.11/ql/ShortRateModels/TwoFactorModels'
make[4]: Entering directory `/root/downloads/QuantLib-0.3.11/ql/ShortRateModels'
make[4]: Nothing to be done for `all-am'.
make[4]: Leaving directory `/root/downloads/QuantLib-0.3.11/ql/ShortRateModels'
make[3]: Leaving directory `/root/downloads/QuantLib-0.3.11/ql/ShortRateModels'
Making all in Solvers1D
make[3]: Entering directory `/root/downloads/QuantLib-0.3.11/ql/Solvers1D'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/root/downloads/QuantLib-0.3.11/ql/Solvers1D'
Making all in TermStructures
make[3]: Entering directory `/root/downloads/QuantLib-0.3.11/ql/TermStructures'
if /bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H
-I. -I. -I../../ql  -I../.. -I../..   -g -O2 -Wall -MT ratehelpers.lo
-MD -MP -MF ".deps/ratehelpers.Tpo" -c -o ratehelpers.lo
ratehelpers.cpp; \
then mv -f ".deps/ratehelpers.Tpo" ".deps/ratehelpers.Plo"; else rm -f
".deps/ratehelpers.Tpo"; exit 1; fi
 g++ -DHAVE_CONFIG_H -I. -I. -I../../ql -I../.. -I../.. -g -O2 -Wall
-MT ratehelpers.lo -MD -MP -MF .deps/ratehelpers.Tpo -c
ratehelpers.cpp  -fPIC -DPIC -o .libs/ratehelpers.o
../../ql/quote.hpp: In member function 'QuantLib::Real
QuantLib::DerivedQuote<UnaryFunction>::value() const':
../../ql/quote.hpp:139: error: there are no arguments to 'QL_REQUIRE'
that depend on a template parameter, so a declaration of 'QL_REQUIRE'
must be available../../ql/quote.hpp:139: error: (if you use
'-fpermissive', G++ will accept your code, but allowing the use of an
undeclared name is deprecated)
../../ql/quote.hpp: In member function 'QuantLib::Real
QuantLib::CompositeQuote<BinaryFunction>::value() const':
../../ql/quote.hpp:164: error: there are no arguments to 'QL_REQUIRE'
that depend on a template parameter, so a declaration of 'QL_REQUIRE'
must be availablemake[3]: *** [ratehelpers.lo] Error 1
make[3]: Leaving directory `/root/downloads/QuantLib-0.3.11/ql/TermStructures'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/root/downloads/QuantLib-0.3.11/ql'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/root/downloads/QuantLib-0.3.11/ql'
make: *** [all-recursive] Error 1
[root@furnace QuantLib-0.3.11]#

---------------------------------------------------------------------

Making install in TermStructures
make[2]: Entering directory `/root/downloads/QuantLib-0.3.11/ql/TermStructures'
if /bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H
-I. -I. -I../../ql  -I../.. -I../..   -g -O2 -Wall -MT ratehelpers.lo
-MD -MP -MF ".deps/ratehelpers.Tpo" -c -o ratehelpers.lo
ratehelpers.cpp; \
then mv -f ".deps/ratehelpers.Tpo" ".deps/ratehelpers.Plo"; else rm -f
".deps/ratehelpers.Tpo"; exit 1; fi
 g++ -DHAVE_CONFIG_H -I. -I. -I../../ql -I../.. -I../.. -g -O2 -Wall
-MT ratehelpers.lo -MD -MP -MF .deps/ratehelpers.Tpo -c
ratehelpers.cpp  -fPIC -DPIC -o .libs/ratehelpers.o
../../ql/quote.hpp: In member function 'QuantLib::Real
QuantLib::DerivedQuote<UnaryFunction>::value() const':
../../ql/quote.hpp:139: error: there are no arguments to 'QL_REQUIRE'
that depend on a template parameter, so a declaration of 'QL_REQUIRE'
must be available../../ql/quote.hpp:139: error: (if you use
'-fpermissive', G++ will accept your code, but allowing the use of an
undeclared name is deprecated)
../../ql/quote.hpp: In member function 'QuantLib::Real
QuantLib::CompositeQuote<BinaryFunction>::value() const':
../../ql/quote.hpp:164: error: there are no arguments to 'QL_REQUIRE'
that depend on a template parameter, so a declaration of 'QL_REQUIRE'
must be availablemake[2]: *** [ratehelpers.lo] Error 1
make[2]: Leaving directory `/root/downloads/QuantLib-0.3.11/ql/TermStructures'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/root/downloads/QuantLib-0.3.11/ql'
make: *** [install-recursive] Error 1
[root@furnace QuantLib-0.3.11]#


These are the output from the following commands, ./configure, make,
make install, respectively.


Reply | Threaded
Open this post in threaded view
|

Re: Problem including quantlib.hpp

Luigi Ballabio
On Mar 24, 2006, at 11:21 PM, J S wrote:
>> Attached are text files containing the configure, make, and install
>> output. It looks like there is a problem in the term structure section
>> that is halting the process.

Open ql/quote.hpp and add

#include <ql/errors.hpp>

after the other includes. This should fix the problem.

Luigi



Reply | Threaded
Open this post in threaded view
|

Re: Problem including quantlib.hpp

J S-15
Hi Luigi:

That file does not exist outside of the extracted download. Here is
the directory listing where the ql directory resides:

[root@furnace ql]# pwd
/usr/local/include/ql
[root@furnace ql]# ls -la
total 160
drwxr-xr-x  20 root root 4096 Mar 23 19:03 .
drwxr-xr-x   4 root root 4096 Mar 23 19:03 ..
drwxr-xr-x   2 root root 4096 Mar 24 16:10 Calendars
drwxr-xr-x   2 root root 4096 Mar 24 16:10 CashFlows
drwxr-xr-x   2 root root 4096 Mar 24 16:10 Currencies
drwxr-xr-x   2 root root 4096 Mar 24 16:10 DayCounters
drwxr-xr-x   2 root root 4096 Mar 24 16:10 FiniteDifferences
drwxr-xr-x   2 root root 4096 Mar 24 16:10 Indexes
drwxr-xr-x   2 root root 4096 Mar 24 16:11 Instruments
drwxr-xr-x   2 root root 4096 Mar 24 16:11 Lattices
drwxr-xr-x   2 root root 4096 Mar 24 16:11 Math
drwxr-xr-x   2 root root 4096 Mar 24 16:11 MonteCarlo
drwxr-xr-x   2 root root 4096 Mar 24 16:11 Optimization
drwxr-xr-x   2 root root 4096 Mar 24 16:11 Patterns
drwxr-xr-x   2 root root 4096 Mar 24 16:11 Pricers
drwxr-xr-x  11 root root 4096 Mar 24 16:12 PricingEngines
drwxr-xr-x   2 root root 4096 Mar 24 16:12 Processes
drwxr-xr-x   2 root root 4096 Mar 24 16:12 RandomNumbers
drwxr-xr-x   5 root root 4096 Mar 24 16:12 ShortRateModels
drwxr-xr-x   2 root root 4096 Mar 24 16:12 Solvers1D
[root@furnace ql]#

The install seems to be getting caught up at the TermStructure
directory, not allowing anything to install after it. As you can see,
there is not TermStructure nor anything after it.


On 3/25/06, Luigi Ballabio <[hidden email]> wrote:

>
> On Mar 24, 2006, at 11:21 PM, J S wrote:
> >> Attached are text files containing the configure, make, and install
> >> output. It looks like there is a problem in the term structure section
> >> that is halting the process.
>
> Open ql/quote.hpp and add
>
> #include <ql/errors.hpp>
>
> after the other includes. This should fix the problem.
>
> Luigi
>
>


Reply | Threaded
Open this post in threaded view
|

Re: Problem including quantlib.hpp

Dirk Eddelbuettel
On 25 March 2006 at 16:59, J S wrote:
| Hi Luigi:
|
| That file does not exist outside of the extracted download. Here is
| the directory listing where the ql directory resides:
|
| [root@furnace ql]# pwd
| /usr/local/include/ql
| [root@furnace ql]# ls -la
| total 160
| drwxr-xr-x  20 root root 4096 Mar 23 19:03 .
| drwxr-xr-x   4 root root 4096 Mar 23 19:03 ..
| drwxr-xr-x   2 root root 4096 Mar 24 16:10 Calendars
| drwxr-xr-x   2 root root 4096 Mar 24 16:10 CashFlows
[...]
| drwxr-xr-x   5 root root 4096 Mar 24 16:12 ShortRateModels
| drwxr-xr-x   2 root root 4096 Mar 24 16:12 Solvers1D
| [root@furnace ql]#
|
| The install seems to be getting caught up at the TermStructure
| directory, not allowing anything to install after it. As you can see,
| there is not TermStructure nor anything after it.

Methinks that is your problem regarding your installation, and you ought to
try to fix it.  For reference, here is what my Debian package installs:

  /usr/include/ql:
  used 396 available 650068
  drwxr-xr-x  24 root root  4096 Mar  4 14:56 .
  drwxr-xr-x  60 root root 12288 Mar 25 10:40 ..
  drwxr-xr-x   2 root root  4096 Mar  4 14:56 Calendars
  drwxr-xr-x   2 root root  4096 Mar  4 14:56 CashFlows
  drwxr-xr-x   2 root root  4096 Mar  4 14:56 Currencies
  drwxr-xr-x   2 root root  4096 Mar  4 14:56 DayCounters
  drwxr-xr-x   2 root root  4096 Mar  4 14:56 FiniteDifferences
  drwxr-xr-x   2 root root  4096 Mar  4 14:56 Functions
  drwxr-xr-x   2 root root  4096 Mar  4 14:56 Indexes
  drwxr-xr-x   2 root root  4096 Mar  4 14:56 Instruments
  drwxr-xr-x   2 root root  4096 Mar  4 14:56 Lattices
  drwxr-xr-x   2 root root  4096 Mar  4 14:56 Math
  drwxr-xr-x   2 root root  4096 Mar  4 14:56 MonteCarlo
  drwxr-xr-x   2 root root  4096 Mar  4 14:56 Optimization
  drwxr-xr-x   2 root root  4096 Mar  4 14:56 Patterns
  drwxr-xr-x   2 root root  4096 Mar  4 14:56 Pricers
  drwxr-xr-x  12 root root  4096 Mar  4 14:56 PricingEngines
  drwxr-xr-x   2 root root  4096 Mar  4 14:56 Processes
  drwxr-xr-x   2 root root  4096 Mar  4 14:56 RandomNumbers
  drwxr-xr-x   6 root root  4096 Mar  4 14:56 ShortRateModels
  drwxr-xr-x   2 root root  4096 Mar  4 14:56 Solvers1D
  drwxr-xr-x   2 root root  4096 Mar  4 14:56 TermStructures
  drwxr-xr-x   2 root root  4096 Mar  4 14:56 Utilities
  drwxr-xr-x   2 root root  4096 Mar  4 14:56 Volatilities
  -rw-r--r--   1 root root  1495 Mar  3 20:14 argsandresults.hpp
  -rw-r--r--   1 root root  7978 Mar  3 20:14 calendar.hpp
  -rw-r--r--   1 root root 10495 Mar  3 20:14 capvolstructures.hpp
  -rw-r--r--   1 root root  1986 Mar  3 20:14 cashflow.hpp
  -rw-r--r--   1 root root  3221 Mar  3 20:14 config.hpp
  -rw-r--r--   1 root root  1826 Mar  3 20:14 core.hpp
  -rw-r--r--   1 root root  5008 Mar  3 20:14 currency.hpp
  -rw-r--r--   1 root root 15854 Mar  3 20:14 date.hpp
  -rw-r--r--   1 root root  4569 Mar  3 20:14 daycounter.hpp
  -rw-r--r--   1 root root  8452 Mar  3 20:14 discretizedasset.hpp
  -rw-r--r--   1 root root  3189 Mar  3 20:14 errors.hpp
  -rw-r--r--   1 root root  2708 Mar  3 20:14 event.hpp
  -rw-r--r--   1 root root  3420 Mar  3 20:14 exchangerate.hpp
  -rw-r--r--   1 root root  3376 Mar  3 20:14 exercise.hpp
  -rw-r--r--   1 root root  2235 Mar  3 20:14 grid.hpp
  -rw-r--r--   1 root root  5949 Mar  3 20:14 handle.hpp
  -rw-r--r--   1 root root 12610 Mar  3 20:14 history.hpp
  -rw-r--r--   1 root root  1810 Mar  3 20:14 index.hpp
  -rw-r--r--   1 root root  5654 Mar  3 20:14 instrument.hpp
  -rw-r--r--   1 root root  7335 Mar  3 20:14 interestrate.hpp
  -rw-r--r--   1 root root  6178 Mar  3 20:14 money.hpp
  -rw-r--r--   1 root root  3290 Mar  3 20:14 numericalmethod.hpp
  -rw-r--r--   1 root root  3791 Mar  3 20:14 option.hpp
  -rw-r--r--   1 root root  1731 Mar  3 20:14 payoff.hpp
  -rw-r--r--   1 root root  1988 Mar  3 20:14 pricingengine.hpp
  -rw-r--r--   1 root root  7463 Mar  3 20:14 qldefines.hpp
  -rw-r--r--   1 root root  1671 Mar  3 20:14 quantlib.hpp
  -rw-r--r--   1 root root  5018 Mar  3 20:14 quote.hpp
  -rw-r--r--   1 root root  5655 Mar  3 20:14 schedule.hpp
  -rw-r--r--   1 root root  3652 Mar  3 20:14 settings.hpp
  -rw-r--r--   1 root root  9186 Mar  3 20:14 solver1d.hpp
  -rw-r--r--   1 root root 13312 Mar  3 20:14 stochasticprocess.hpp
  -rw-r--r--   1 root root  7457 Mar  3 20:14 swaptionvolstructure.hpp
  -rw-r--r--   1 root root  4956 Mar  3 20:14 termstructure.hpp
  -rw-r--r--   1 root root  7526 Mar  3 20:14 timegrid.hpp
  -rw-r--r--   1 root root  2015 Mar  3 20:14 types.hpp
  -rw-r--r--   1 root root 18358 Mar  3 20:14 voltermstructure.hpp
  -rw-r--r--   1 root root 14161 Mar  3 20:14 yieldtermstructure.hpp

Hope this helps, Dirk
 
| On 3/25/06, Luigi Ballabio <[hidden email]> wrote:
| >
| > On Mar 24, 2006, at 11:21 PM, J S wrote:
| > >> Attached are text files containing the configure, make, and install
| > >> output. It looks like there is a problem in the term structure section
| > >> that is halting the process.
| >
| > Open ql/quote.hpp and add
| >
| > #include <ql/errors.hpp>
| >
| > after the other includes. This should fix the problem.
| >
| > Luigi
| >
| >
|
|
| -------------------------------------------------------
| This SF.Net email is sponsored by xPML, a groundbreaking scripting language
| that extends applications into web and mobile media. Attend the live webcast
| and join the prime developer group breaking into this new coding territory!
| http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
| _______________________________________________
| Quantlib-users mailing list
| [hidden email]
| https://lists.sourceforge.net/lists/listinfo/quantlib-users

--
Hell, there are no rules here - we're trying to accomplish something.
                                                  -- Thomas A. Edison


Reply | Threaded
Open this post in threaded view
|

Re: Problem including quantlib.hpp

J S-15
Hi Dirk:

That is consistent with what I believe is the problem. The
TermStructures module seems to be creating the problem that halts the
installation after it.

On 3/25/06, Dirk Eddelbuettel <[hidden email]> wrote:

>
> On 25 March 2006 at 16:59, J S wrote:
> | Hi Luigi:
> |
> | That file does not exist outside of the extracted download. Here is
> | the directory listing where the ql directory resides:
> |
> | [root@furnace ql]# pwd
> | /usr/local/include/ql
> | [root@furnace ql]# ls -la
> | total 160
> | drwxr-xr-x  20 root root 4096 Mar 23 19:03 .
> | drwxr-xr-x   4 root root 4096 Mar 23 19:03 ..
> | drwxr-xr-x   2 root root 4096 Mar 24 16:10 Calendars
> | drwxr-xr-x   2 root root 4096 Mar 24 16:10 CashFlows
> [...]
> | drwxr-xr-x   5 root root 4096 Mar 24 16:12 ShortRateModels
> | drwxr-xr-x   2 root root 4096 Mar 24 16:12 Solvers1D
> | [root@furnace ql]#
> |
> | The install seems to be getting caught up at the TermStructure
> | directory, not allowing anything to install after it. As you can see,
> | there is not TermStructure nor anything after it.
>
> Methinks that is your problem regarding your installation, and you ought to
> try to fix it.  For reference, here is what my Debian package installs:
>
>   /usr/include/ql:
>   used 396 available 650068
>   drwxr-xr-x  24 root root  4096 Mar  4 14:56 .
>   drwxr-xr-x  60 root root 12288 Mar 25 10:40 ..
>   drwxr-xr-x   2 root root  4096 Mar  4 14:56 Calendars
>   drwxr-xr-x   2 root root  4096 Mar  4 14:56 CashFlows
>   drwxr-xr-x   2 root root  4096 Mar  4 14:56 Currencies
>   drwxr-xr-x   2 root root  4096 Mar  4 14:56 DayCounters
>   drwxr-xr-x   2 root root  4096 Mar  4 14:56 FiniteDifferences
>   drwxr-xr-x   2 root root  4096 Mar  4 14:56 Functions
>   drwxr-xr-x   2 root root  4096 Mar  4 14:56 Indexes
>   drwxr-xr-x   2 root root  4096 Mar  4 14:56 Instruments
>   drwxr-xr-x   2 root root  4096 Mar  4 14:56 Lattices
>   drwxr-xr-x   2 root root  4096 Mar  4 14:56 Math
>   drwxr-xr-x   2 root root  4096 Mar  4 14:56 MonteCarlo
>   drwxr-xr-x   2 root root  4096 Mar  4 14:56 Optimization
>   drwxr-xr-x   2 root root  4096 Mar  4 14:56 Patterns
>   drwxr-xr-x   2 root root  4096 Mar  4 14:56 Pricers
>   drwxr-xr-x  12 root root  4096 Mar  4 14:56 PricingEngines
>   drwxr-xr-x   2 root root  4096 Mar  4 14:56 Processes
>   drwxr-xr-x   2 root root  4096 Mar  4 14:56 RandomNumbers
>   drwxr-xr-x   6 root root  4096 Mar  4 14:56 ShortRateModels
>   drwxr-xr-x   2 root root  4096 Mar  4 14:56 Solvers1D
>   drwxr-xr-x   2 root root  4096 Mar  4 14:56 TermStructures
>   drwxr-xr-x   2 root root  4096 Mar  4 14:56 Utilities
>   drwxr-xr-x   2 root root  4096 Mar  4 14:56 Volatilities
>   -rw-r--r--   1 root root  1495 Mar  3 20:14 argsandresults.hpp
>   -rw-r--r--   1 root root  7978 Mar  3 20:14 calendar.hpp
>   -rw-r--r--   1 root root 10495 Mar  3 20:14 capvolstructures.hpp
>   -rw-r--r--   1 root root  1986 Mar  3 20:14 cashflow.hpp
>   -rw-r--r--   1 root root  3221 Mar  3 20:14 config.hpp
>   -rw-r--r--   1 root root  1826 Mar  3 20:14 core.hpp
>   -rw-r--r--   1 root root  5008 Mar  3 20:14 currency.hpp
>   -rw-r--r--   1 root root 15854 Mar  3 20:14 date.hpp
>   -rw-r--r--   1 root root  4569 Mar  3 20:14 daycounter.hpp
>   -rw-r--r--   1 root root  8452 Mar  3 20:14 discretizedasset.hpp
>   -rw-r--r--   1 root root  3189 Mar  3 20:14 errors.hpp
>   -rw-r--r--   1 root root  2708 Mar  3 20:14 event.hpp
>   -rw-r--r--   1 root root  3420 Mar  3 20:14 exchangerate.hpp
>   -rw-r--r--   1 root root  3376 Mar  3 20:14 exercise.hpp
>   -rw-r--r--   1 root root  2235 Mar  3 20:14 grid.hpp
>   -rw-r--r--   1 root root  5949 Mar  3 20:14 handle.hpp
>   -rw-r--r--   1 root root 12610 Mar  3 20:14 history.hpp
>   -rw-r--r--   1 root root  1810 Mar  3 20:14 index.hpp
>   -rw-r--r--   1 root root  5654 Mar  3 20:14 instrument.hpp
>   -rw-r--r--   1 root root  7335 Mar  3 20:14 interestrate.hpp
>   -rw-r--r--   1 root root  6178 Mar  3 20:14 money.hpp
>   -rw-r--r--   1 root root  3290 Mar  3 20:14 numericalmethod.hpp
>   -rw-r--r--   1 root root  3791 Mar  3 20:14 option.hpp
>   -rw-r--r--   1 root root  1731 Mar  3 20:14 payoff.hpp
>   -rw-r--r--   1 root root  1988 Mar  3 20:14 pricingengine.hpp
>   -rw-r--r--   1 root root  7463 Mar  3 20:14 qldefines.hpp
>   -rw-r--r--   1 root root  1671 Mar  3 20:14 quantlib.hpp
>   -rw-r--r--   1 root root  5018 Mar  3 20:14 quote.hpp
>   -rw-r--r--   1 root root  5655 Mar  3 20:14 schedule.hpp
>   -rw-r--r--   1 root root  3652 Mar  3 20:14 settings.hpp
>   -rw-r--r--   1 root root  9186 Mar  3 20:14 solver1d.hpp
>   -rw-r--r--   1 root root 13312 Mar  3 20:14 stochasticprocess.hpp
>   -rw-r--r--   1 root root  7457 Mar  3 20:14 swaptionvolstructure.hpp
>   -rw-r--r--   1 root root  4956 Mar  3 20:14 termstructure.hpp
>   -rw-r--r--   1 root root  7526 Mar  3 20:14 timegrid.hpp
>   -rw-r--r--   1 root root  2015 Mar  3 20:14 types.hpp
>   -rw-r--r--   1 root root 18358 Mar  3 20:14 voltermstructure.hpp
>   -rw-r--r--   1 root root 14161 Mar  3 20:14 yieldtermstructure.hpp
>
> Hope this helps, Dirk
>
> | On 3/25/06, Luigi Ballabio <[hidden email]> wrote:
> | >
> | > On Mar 24, 2006, at 11:21 PM, J S wrote:
> | > >> Attached are text files containing the configure, make, and install
> | > >> output. It looks like there is a problem in the term structure section
> | > >> that is halting the process.
> | >
> | > Open ql/quote.hpp and add
> | >
> | > #include <ql/errors.hpp>
> | >
> | > after the other includes. This should fix the problem.
> | >
> | > Luigi
> | >
> | >
> |
> |
> | -------------------------------------------------------
> | This SF.Net email is sponsored by xPML, a groundbreaking scripting language
> | that extends applications into web and mobile media. Attend the live webcast
> | and join the prime developer group breaking into this new coding territory!
> | http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
> | _______________________________________________
> | Quantlib-users mailing list
> | [hidden email]
> | https://lists.sourceforge.net/lists/listinfo/quantlib-users
>
> --
> Hell, there are no rules here - we're trying to accomplish something.
>                                                   -- Thomas A. Edison
>


Reply | Threaded
Open this post in threaded view
|

Re: Problem including quantlib.hpp

Luigi Ballabio
In reply to this post by J S-15
On Mar 25, 2006, at 11:59 PM, J S wrote:
>> Open ql/quote.hpp and add
>>
>> #include <ql/errors.hpp>
>>
>> after the other includes. This should fix the problem.
>
> That file does not exist outside of the extracted download.

I know--sorry for not being clear. You'll have to edit the file in the
extracted tarball and run "make" and "make install" again.

Luigi