|
From: Luigi B. <lui...@gm...> - 2008-01-28 14:57:53
|
On Mon, 2008-01-28 at 09:51 +0800, Max wrote: > On Jan 25, 2008 9:32 PM, Luigi Ballabio <lui...@gm...> > 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. |