Re: Compilation and Installation QuantLib 0.3.11

Posted by Fred Nastos on
URL: http://quantlib.414.s1.nabble.com/Compilation-and-Installation-QuantLib-0-3-11-tp4417p4423.html

On Tuesday 24 January 2006 17:14, L.Isella wrote:
> 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?

What happens if you link by hand, like so

]$ g++ simple-option.cc /usr/local/lib/libQuantLib.a