Re: quantlib-python compile error
Posted by Brad-11 on
URL: http://quantlib.414.s1.nabble.com/quantlib-python-compile-error-tp4088p4094.html
Thanks, I tried putting the #undef just in front of the #include statement that
pulled in the file with the "Real barrier() const;" declaration, and put the
macro back in directly after that.
Here is a diff in case anyone else runs into this problem.
1878,1880d1877
< #ifdef barrier
< #undef barrier
< #endif
1882d1878
< #define barrier() __asm__ __volatile__("": : :"memory"
The unit tests (python setup.py test) hang after testing build_ext, but maybe
that's an unrelated problem.
Maybe someone wants to file a bug/ complaint with the kernel developers for
choosing a pretty bad name for a macro.