Compilation and Installation QuantLib 0.3.11

Posted by L.Isella on
URL: http://quantlib.414.s1.nabble.com/Compilation-and-Installation-QuantLib-0-3-11-tp4417.html

n Tue, 2006-01-24 at 15:20 -0600, Dirk Eddelbuettel wrote:
It is something in the date calcs that must have gotten fixed since 0.3.9.

>
> If we forward the dates from 1998/1999 to 2006/2007, it all works:
>
> edd@joe:~$ grep 200 euopt.cpp
>   Date todaysDate(15, May, 2006);
>   Date settlementDate(17, May, 2006), exerciseDate(17, May, 2007);
> edd@joe:~$ g++ -o euopt euopt.cpp -lQuantLib
> edd@joe:~$ ./euopt
> Black-Scholes value: 0.0823425
>
> even on the Ubuntu system with the older 0.3.9 library.
>
> Dirk


Alright, this seems to be to a good explanation of what I have seen. A small bug in Ubuntu must be the solution.
However, frustrated by what was going on, I downloaded version 0.3.11 from sourceforge.net and I installed it by:
./configure
make
sudo make install

Some waiting time, tons of output and finally;

Libraries have been installed in:
   /usr/local/lib

where allegedly g++ should be able to see them.
I reverted to the code in the previous email by compiling and running it:

lorenzo@mypc:~/Temp$ g++ -o simple simple-option.cc -lQuantLib
lorenzo@mypc:~/Temp$ ./simple
./simple: error while loading shared libraries: libQuantLib-0.3.11.so: cannot open shared object file: No such file or directory


But shouldn't g++ be able to see it if I do not toy with the installation directory by making some non-standard choices?

Best regards

Lorenzo