[issue10910] pyport.h FreeBSD/Mac OS X fix causes errors in C++ compilation

2012-02-04 Thread Nasos Dousis
Nasos Dousis ndou...@gmail.com 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

[issue10910] pyport.h FreeBSD/Mac OS X fix causes errors in C++ compilation

2011-07-19 Thread Nasos Dousis
Nasos Dousis ndou...@gmail.com 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

[issue10910] pyport.h FreeBSD/Mac OS X fix causes errors in C++ compilation

2011-07-19 Thread Nasos Dousis
Nasos Dousis ndou...@gmail.com added the comment: With attachment-- -- Added file: http://bugs.python.org/file22703/test-boost-python.tar.gz ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10910

[issue10910] pyport.h FreeBSD/Mac OS X fix causes errors in C++ compilation

2011-07-15 Thread Nasos Dousis
Nasos Dousis ndou...@gmail.com 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

[issue10910] pyport.h FreeBSD/Mac OS X fix causes errors in C++ compilation

2011-04-19 Thread Nasos Dousis
Nasos Dousis ndou...@gmail.com 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 #includeboost/python.hpp Also, my code compiles in Linux, with and without

[issue10910] pyport.h FreeBSD/Mac OS X fix causes errors in C++ compilation

2011-03-09 Thread Nasos Dousis
Nasos Dousis ndou...@gmail.com 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