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

Lawrence Spector Lawrence.Spector at CanfieldSci.com
Mon Jul 16 21:41:24 CEST 2007


Hmm... thanks for your quick and honest answer.  I'm disappointed to hear this.  It's unfortunate that there's no way to tell GCCXML to ignore any errors and just process whatever it figured out, even if it's not a 100% complete set.

I guess it's going to come down to doing some major stubbing before it even gets into the boost header files.

Out of curiosity, you said that it's too weak to compile code from Boost.Python on Windows.  I may be being overly optimistic, but I thought you might be implying that it might work on another platform, like Linux?  I have a Linux box at my desk if this is an option.

Anyway, Roman, I just wanted to say that I appreciate all of your assistance and hard work.

Thanks,

Lawrence

-----Original Message-----
From: c++-sig-bounces at python.org [mailto:c++-sig-bounces at python.org] On Behalf Of Roman Yakovenko
Sent: Monday, July 16, 2007 3:26 PM
To: Development of Python/C++ integration
Subject: Re: [C++-sig] [C++-Sig] Py++& GCCXML -- Many levels of compilation errors when compiling code that uses Boost, Microsoft Visual C++ headers, Python API, etc...

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/
_______________________________________________
C++-sig mailing list
C++-sig at python.org
http://mail.python.org/mailman/listinfo/c++-sig



More information about the Cplusplus-sig mailing list