Re: quantlib-python compile error

Posted by Dirk Eddelbuettel on
URL: http://quantlib.414.s1.nabble.com/quantlib-python-compile-error-tp4088p4091.html

On 4 October 2005 at 18:20, Brad wrote:
| 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?
[...]
| ql and ql-python 0.3.10, gcc 3.3.6, python 2.3.5

Can you try gcc 3.4.* or 4.0.*?  Works for the Debian packages I maintain ...

Dirk

--
Statistics: The (futile) attempt to offer certainty about uncertainty.
         -- Roger Koenker, 'Dictionary of Received Ideas of Statistics'