Posted by
Luigi Ballabio on
Jan 28, 2008; 2:56pm
URL: http://quantlib.414.s1.nabble.com/installation-is-failing-on-cygwin-tp11632p11642.html
On Mon, 2008-01-28 at 09:51 +0800, Max wrote:
> On Jan 25, 2008 9:32 PM, Luigi Ballabio <
[hidden email]>
> wrote:
>
> As for the link problem, I don't think adding -lQuantLib would
> be the
> correct fix; adding that might cause the linker to pick up a
> previously
> installed library instead of the one just compiled and not yet
> installed. May you send me the Makefile for BermudanSwaption
> as well?
>
> The Makefile and log file are attached.
Ok, it's the same problem as before---just with different symptoms.
The 'examples' target tries to build BermudanSwaption, but the Makefile
contains rules for BermudanSwaption.exe instead. Seeing that a
BermudanSwaption.cpp file exists, make tries some default rules---but of
course they don't include -lQuantLib.
If you edit the Makefile and replace the line
examples: BermudanSwaption
with:
examples: BermudanSwaption$(EXEEXT)
then 'make examples' should work correctly. (Or you can edit Makefile.in
in the same way and re-run configure.)
Later,
Luigi
--
Flon's Law:
There is not now, and never will be, a language in
which it is the least bit difficult to write bad programs.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev