
Hello, creating a custom build, I get lots of compiler errors during Boost.Python compilation. Some of these compiler errors are: c:\...\boost_1_31_0\libs\python\build\../src/numeric.cpp: Error E2231 C:\...\boost_1_31_0\boost/python/detail/value_is_shared_ptr.hpp 14: Member value_is_shared_ptr<X_>::value cannot be used without an object. Error E2299 C:\...\boost_1_31_0\boost/python/detail/value_is_shared_ptr.hpp 14: Cannot generate template specialization from 'mpl::bool_<C_>' Error E2040 C:\...\boost_1_31_0\boost/python/detail/value_is_shared_ptr.hpp 14: Declaration syntax error These error messages repeat in a lot of other files. Sometimes the compiler aborts compilation because of too many errors or warnings. The rest of boost seems to compile fine. Does anybody have an idea on how to solve this problem? Is this difficulty already known? I tried to compile with Python 2.3 at first but switched back to Python 2.2 because I read somewhere that there may be some problems with this version. But it did not solve the problem. I already tried to compile the current CVS Snapshot but it did not change a thing. My configuration is: - Python 2.2 - Boost 1.31.0 - bjam 3.1.10 - Windows XP - Borland C++ Builder 6 Personal Building Boost with: c:\...\boost_1_31_0>bjam -sTOOLS=borland -sPYTHON_ROOT=c:\...\python22 install I would appreciate any suggestions. Regards, Steffen Rauh

creating a custom build, I get lots of compiler errors during Boost.Python compilation. Some of these compiler errors are: Unfortunately, Boost.Python isn't supported on BCB, AFAIK.
I wonder what special language constructs Boost.Python uses to fail on BCB and to work fine on MSVC++ and GCC (at least the documentation says so). Maybe I'll have a closer look on the sources this weekend. But this incompatibility should at least be noted within the documentation to save guys like me a whole day trying to get Boost.Python built (I always thought I do something wrong). ;-) Regards, Steffen Rauh

"Steffen Rauh" <steffen.rauh@gmx.de> writes:
creating a custom build, I get lots of compiler errors during Boost.Python compilation. Some of these compiler errors are: Unfortunately, Boost.Python isn't supported on BCB, AFAIK.
I wonder what special language constructs Boost.Python uses to fail on BCB and to work fine on MSVC++ and GCC (at least the documentation says so).
Nothing. BCB's template handling is so ridiculously flaky that it's really easy to fail.
Maybe I'll have a closer look on the sources this weekend. But this incompatibility should at least be noted within the documentation to save guys like me a whole day trying to get Boost.Python built (I always thought I do something wrong). ;-)
It's noted at http://www.boost.org/regression-logs, which is where you go to find out about compiler support for any given library. I didn't want to try to list every compiler it *doesn't* work with, because I don't know about every compiler. -- Dave Abrahams Boost Consulting http://www.boost-consulting.com

Maybe I'll have a closer look on the sources this weekend. But this incompatibility should at least be noted within the documentation to save guys like me a whole day trying to get Boost.Python built (I always thought I do something wrong). ;-) It's noted at http://www.boost.org/regression-logs, which is where you go to find out about compiler support for any given library. I didn't want to try to list every compiler it *doesn't* work with, because I don't know about every compiler.
Alright, this was my fault. I did not see the regression test logs provide detailed information on source files and compilers. Thank you for your help! :-) Regards, Steffen Rauh
participants (3)
-
David Abrahams
-
Pavel Vozenilek
-
Steffen Rauh