|
Boost : |
From: Martin Wille (mw8329_at_[hidden])
Date: 2004-09-30 05:49:03
David Abrahams wrote:
> Martin Wille writes:
>
>
>>Trying: assert abs(rewrap_value_complex_float(4+.2j) - (4+.2j)) < .000001
>>Expecting: nothing
>>Segmentation fault
>
>
> Wild guess: This is an ODR violation. The Boost.Python library and
> the test shared library were compiled with a different definition of
> std::complex.
How could that have happened? Note, this is not the intel compiler,
so flags like "-cxxlib-gcc" shouldn't be a problem here. Could the
build system use so different flags that the resulting libraries
wouldn't be interoperable? (I know this can happen rather easily
on other systems. However, I haven't seen that with gcc on Linux
as long as you stick to the same compiler version).
Python was compiled using gcc 3.3.4. Could this cause the problem?
(I don't think so.)
Regards,
m
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk