Nasos Dousis added the comment:
Per Chen Huang's comment, I retested my test case code using several versions
of boost and Python 2.7:
boost 1.45: build fails, errors as reported.
boost 1.46: success.
boost 1.47: success.
I've attached a revised test case that automatically dow
Nasos Dousis added the comment:
With attachment--
--
Added file: http://bugs.python.org/file22703/test-boost-python.tar.gz
___
Python tracker
<http://bugs.python.org/issue10910>
___
test-boost-python.
Nasos Dousis added the comment:
Ronald, thanks again. I stripped out as much as I could from the
original code and generated the attached project. In doing so, I
narrowed the problem down to boost/weak_ptr.hpp.
The sample project consists of:
test-boost-python/Makefile
test-boost-python/src
Nasos Dousis added the comment:
Ronald,
Thanks much for your help and insight. I tried the patch but unfortunately it
didn't work for me-- this might be because I have Python extensions written in
C++.
Any other suggestions? Should I wait for the next version of boost.python?
Thank
Nasos Dousis added the comment:
Meador et al,
Thanks for your attention to this issue. Just to clarify, I can eliminate
the compile errors by prepending
#include "Python.h"
to any source file with
#include
Also, my code compiles in Linux, with and without the Python.h header:
Nasos Dousis added the comment:
I'm upgrading from Python 2.6.5 to 2.7.1, and I'm getting the error below when
compiling my code using Boost 1.45 and gcc 4.2.1 in OSX 10.6.6. The following
thread describes similar symptoms related to the ordering of header files and
macro definit