[Swig-user] How to receive a FILE* from Python under MinGW?

Giovanni Bajo noway at ask.me
Wed Mar 21 19:55:09 EDT 2007


On 21/03/2007 6.49, Carl Douglas wrote:

> Hi John,
> 
> In my case, all I needed was a PyFile_AsFile to get the File *.
> However I found that Python errors going to stdout/stderr were not
> being redirected properly when my code was linking to a different
> version of the CRT than the build of Python I was using.
> 
> In the end, I came up with one of two solutions, and I really don't
> like recommending either:

I suggest people to try my GCC 4.1.2 binary installer for Windows which fully 
integrates with Python and has scripts in place to solve the MSVCR71.DLL 
problem. It was announced on this very list a few days ago:

http://www.develer.com/oss/GccWinBinaries

Feedback is welcome!
-- 
Giovanni Bajo



More information about the Python-list mailing list