[C++-sig] compilation problems with mingw v2.0

eric jones eric at enthought.com
Mon Oct 14 14:15:34 CEST 2002


We've handled this in SciPy by automating the process in
scipy_distutils.  The file scipy/scipy_distutils/mingw32support.py and
lib2def.py are used in the process.  Here is a (long) link to
mingw32support.py in our CVS.

http://www.scipy.org/site_content/remap?rmurl=http%3A//scipy.net/cgi-bin
/viewcvsx.cgi/scipy/scipy_distutils/mingw32_support.py%3Frev%3D1.7%26con
tent-type%3Dtext/vnd.viewcvs-markup

lib2def.py may not be as general as the solution mentioned on the web
page, but it works fine for all the Python's we've tested against.  We
did modify it some to make it work for any version of Python.  And,
since it is all pure Python and doesn't require any externally installed
binaries, perhaps something like it can be worked into the boost build
process.

On a related topic, I'm getting seg-faults when using weave with
Mingw2.0 (gcc 3.2) when running with the standard MSVC 6.0 compiled
Python.  Switch weave to using gcc 2.95.3 or MSVC 6.0 and all the
problems go away.

I haven't had a chance to investigate any further than knowing it is a
problem.  It sounds like boost is working fine which is a relief.  I was
worried that there was some irreconcilable MSVC-C vs. gcc3.2-C++ ABI
issue.

Eric

> -----Original Message-----
> From: c++-sig-admin at python.org [mailto:c++-sig-admin at python.org] On
Behalf
> Of David Abrahams
> Sent: Sunday, October 13, 2002 6:23 AM
> To: c++-sig at python.org
> Subject: Re: [C++-sig] compilation problems with mingw v2.0
> 
> sashan <sashang at ihug.co.nz> writes:
> 
> > Hi
> >
> > I know this thread is old but I'm getting similar link errors when
> > using MinGW 2.0. I'm using the latest from cvs (deleted the contents
> > of the boost directory and did a checkout) How did you get around
> > this?  This is the command line I used to initiate the build:
> >
> > bjam -sTOOLS=mingw -sBUILD=release -sMINGW_ROOT_DIRECTORY=d:\mingw
> >
> > I can build Boost.Python fine with MSVC6.0.
> >
> > Thanks
> >
> > Sashan
> 
> I uttered the magic incantations at:
> 
>   http://www.python.org/doc/current/inst/non-ms-
> compilers.html#SECTION000312000000000000000
> 
> HTH,
> --
>            David Abrahams * Boost Consulting
> dave at boost-consulting.com * http://www.boost-consulting.com
> 
> 
> _______________________________________________
> 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