Posted by
Luigi Ballabio-2 on
URL: http://quantlib.414.s1.nabble.com/Failure-to-build-quantlib-python-on-Mandrake-9-1-tp2670p2673.html
At 11:44 AM 9/17/03, Thomas Plümpe wrote:
> > > g++ -DNDEBUG -O2 -fomit-frame-pointer -pipe -march=i586
> -mcpu=pentiumpro -fPIC -I/usr/local/include -I/usr/local/include
> -I/usr/include/python2.2 -c QuantLib/quantlib_wrap.cpp -o
> build/temp.linux-i686-2.2/quantlib_wrap.o
> > > QuantLib/quantlib_wrap.cpp:945:6: #error using an old version of
> QuantLib, please update
> >
> > Do you have an older version installed?
>$ rpm -qa | grep -i quantlib
>QuantLib-0.3.3-1
I don't know how the rpms are packaged---did the above also install the
include files? Wait, I'll check on the site... Nope. You should have
installed QuantLib-devel-0.3.3-1 as well.
>I have compiled 0.3.1 quite some time ago and just found several
>libQuantLib.* files in /usr/local/lib. I removed them and tried the
>build again, but I am still getting the same output warning of an old
>version and then after a huge number of parse errors:
> > > error: command 'g++' failed with exit status 1
Hmm, removing the libs might not be enough. You might have old header files
lying around in /usr/local/include or somewhere. Locate qldefines.hpp and
check the definition of QL_VERSION inside it. If it's earlier than 0.3.3,
remove the ql/ directory from your include path and install the
QuantLib-devel rpm instead.
Later,
Luigi