[C++-sig] [C++-Sig] Py++& GCCXML -- Many levels of compilation errors when compiling code that uses Boost, Microsoft Visual C++ headers, Python API, etc...

Roman Yakovenko roman.yakovenko at gmail.com
Mon Jul 16 21:26:26 CEST 2007


On 7/16/07, Lawrence Spector <Lawrence.Spector at canfieldsci.com> wrote:
> I'm using Visual Studio 2005 (8).  I've spent a significant amount of time trying to get Py++ working, and while I've made progress, this one has had me at its mercy.  I've spent days trying to stub out what GCCXML complains about, but each time I stub out a file, I get more errors in the next one and it just goes down the chain.
>
> Here's what I've done to demonstrate.  There's a sample cpp file, for demonstration, called TestPy++.cpp.  This was processed using pyplusplus_gui.pyw.  The code is as follows:
>

:-( The truthful answer:

GCCXML is too weak to compile code from Boost.Python library on Windows :-((((.
Basically there is no "user-space" work around. I am working on
integrating another back-end( compiler) to pygccxml, but it will take
some time untill it will become "production-ready".

The "good" news is that some of the boost libraries treat GCCXML as
another compiler and introduce work-around. Another good news is that
according to this regression results(
http://engineering.meta-comm.com/boost-regression/1_34_0/user/mpl_release.html
) MPL compiles fine under the MinGW ( GCC on Windows ) so may be you
will be able to find some define that will allow you to compiler the
library.

It also worse to report the problem to Boost developers. May be they
will help you and tweak their code.

-- 
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/



More information about the Cplusplus-sig mailing list