quantlib-python compile error

Posted by Brad-11 on
URL: http://quantlib.414.s1.nabble.com/quantlib-python-compile-error-tp4088.html

Hi,

I tried to compile quantlib-python (after installing quantlib), and get the
following error:

$ python setup.py build
running build
running build_py
running build_ext
building 'QuantLib._QuantLib' extension
g++ -fno-strict-aliasing -DNDEBUG -fPIC -I/usr/local/include
-I/usr/include/python2.3 -c QuantLib/quantlib_wrap.cpp -o
build/temp.linux-i686-2.3/QuantLib/quantlib_wrap.o -Wno-unused
In file included from /usr/local/include/ql/PricingEngines/Barrier/all.hpp:24,
                 from /usr/local/include/ql/PricingEngines/all.hpp:31,
                 from /usr/local/include/ql/quantlib.hpp:41,
                 from QuantLib/quantlib_wrap.cpp:1878:
/usr/local/include/ql/PricingEngines/Barrier/analyticbarrierengine.hpp:56:
error: declaration
   does not declare anything
/usr/local/include/ql/PricingEngines/Barrier/analyticbarrierengine.hpp:56:
error: syntax
   error before `__asm__'
error: command 'g++' failed with exit status 1

I checked, on line 56 it says
Real barrier() const;

I don't understand why that's not a declaration, and what __asm__ has to do with
this. Any pointers?

Thanks,

Brad

ql and ql-python 0.3.10, gcc 3.3.6, python 2.3.5