Posted by
Richard Stanton on
URL: http://quantlib.414.s1.nabble.com/Installation-of-Quantlib-0-9-9-fails-under-cygwin-gcc-4-3-4-tp12518p12521.html
I got these to compile by manually editing the makefile for the test programs and moving $(quantlib_benchmark_LDFLAGS) to the end of the relevant lines.
-----Original Message-----
From: Jose Aparicio-Navarro [mailto:
[hidden email]]
Sent: Friday, January 15, 2010 7:03 AM
To:
[hidden email]
Cc: Richard Stanton;
[hidden email]
Subject: Re: [Quantlib-dev] Installation of Quantlib 0.9.9 fails under cygwin (gcc 4.3.4)
Quoting Luigi Ballabio <
[hidden email]>:
> On Sat, 2010-01-09 at 08:04 -0800, Richard Stanton wrote:
> > I just downloaded Quantlib 0.9.9 and am trying to install it using the
> > latest version of cygwin/gcc under Windows Vista (cygwin 1.7.1, gcc
> > version 4.3.4). I have boost 1.41.0 installed, and ./configure finds
> > this OK and runs to completion.
>
> > Unfortunately, when I then run “makeâ€, the compilation seems to run
> > fine for quite some while, but dies at the following point: [...]
>
> Richard,
> do you have the same problem with the 1.0 beta I've just released?
>
Hi all
Funny, looks like I have an orthogonal set of problems.
My kit:
QuantLib-1.0b1
CYGWIN_NT-5.0 1.5.18(0.132/4/2)
gcc version 3.4.4 (cygming special) (gdc 0.12, using dmd 0.125)
/gcc/i686-pc-cygwin/3.4.4
boost_1_41_0
doxygen 1.6.2
----
./configure --with-boost-include=/cygdrive/c/Boost/boost_1_41_0/
--with-boost-lib=/cygdrive/c/Boost/boost_1_41_0/stage/lib/
make
gcc took ages, but life as usual.
The QL lib and the examples build ok (no errs no warns). All the examples run
fine. Linking the test-suite reports missing refs though:
======================================================
[...]
libtool: link: g++ -g -O2 -o .libs/quantlib-test-suite.exe quantlibtestsuite.o a
mericanoption.o array.o
[...objects test suite blah blah...]
transformedgrid.o tqre
igendecomposition.o tracing.o utilities.o varianceoption.o varianceswaps.o volat
ilitymodels.o -L/cygdrive/c/Boost/boost_1_41_0/stage/lib -lboost_unit_test_fram
ework ./.libs/libUnitMain.a ../ql/.libs/libQuantLib.a
./.libs/libUnitMain.a(libUnitMain_la-main.o): In function `_Z13init_functionv':
/cygdrive/c/QuantLib-1.0b1/test-suite/main.cpp:7: undefined reference to `boost:
:unit_test::framework::master_test_suite()'
./.libs/libUnitMain.a(libUnitMain_la-main.o): In function `main':
/cygdrive/c/QuantLib-1.0b1/test-suite/main.cpp:11: undefined reference to `boost
::unit_test::unit_test_main(bool (*)(), int, char**)'
Info: resolving vtable for boost::unit_test::unit_test_log_tby linking to __imp_
__ZTVN5boost9unit_test15unit_test_log_tE (auto-import)
collect2: ld returned 1 exit status
make[1]: *** [quantlib-test-suite.exe] Error 1
make[1]: Leaving directory `/cygdrive/c/QuantLib-1.0b1/test-suite'
make: *** [all-recursive] Error 1
======================================================
I always had problems with the test-suite (and other boost libs that require
compilation). This time I managed to get the unit test framework built with a
dirty hack of
'boost/test/execution_monitor.ipp'
nm of the boost test libs looks fine but I will blame the missing ref to the
change I made.
I still have to try harder but how do you build boost under cygwin? Or someone
else, Nando? I have seen in the archives some of you managed to built on cygwin
without problems.
I have also generated the docs ok. Some classes (e.g. see
SpreadedSwaptionVolatility and
SwaptionVolatilityDiscrete but not ConstantSwaptionVolatility) are not shown
in the class hierarchy. Is it possible to add just one quick line or change
the doxy settings so it generates docs? For instance, in that same example
looks like SwaptionVolatilityStructure only had one derived class.
Ill try to continue playing with it over the weekend and possibly upgrade gcc
Best regards
Pepe
------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev