Re: quantlib-python compile error

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

I think I found the offending header that defines a barrier() macro:

This problem appears to be one of the kernel headers of the kernel that I am usi
ng (2.6.12-gentoo-r10, although it is also in the plain vanilla kernel.org
2.6.12.5):

in /usr/include/linux/compiler-gcc.h:
[...]
/* Optimization barrier */
/* The "volatile" is due to gcc bugs */
#define barrier() __asm__ __volatile__("": : :"memory")
[...]

This obviously destroys the following declaration:
Real barrier() const;

This isn't really a quantlib-python issue, it is a quantlib/ kernel/ gcc issue,
I guess.

Any ideas as to how I could get around this?

Brad