<br><br><div class="gmail_quote">2008/5/17 Christian Heimes <<a href="mailto:lists@cheimes.de">lists@cheimes.de</a>>:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Matthieu Brucher schrieb:<br>
<div class="Ih2E3d">> Hi,<br>
><br>
> I did not manage to build extension with distutils with Python compiled with<br>
> VS different than 2003. The need for 2003 was hard-coded in distutils.<br>
> You can try building extensions with VS2008 with Scons. This is what I do a<br>
> lot, and everything works fine as long as the interface does not use<br>
> standard structures (like FILE, custom structures are fine) or objects<br>
> allocated in the extension is freed in the extension.<br>
<br>
</div>Python 2.5 is compiled with VS 2003. Neither VS 2005 nor 2008 are<br>
officially supported.</blockquote><div> <br>Even if you compile Python 2.5 with VS2008, VS2003 is used for the extensions, AFAIR. I didn't try Python 2.6 because I only have Visual C++ Express 2008.<br><br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
You can compile extensions with a different version of MS VC but it can<br>
get you in a lot of trouble. Every version of the VS Compiler uses its<br>
own C Runtime Library (MSVCRT). You can't share some resources like<br>
allocated memory and FILE* objects between MSVCRTs.</blockquote></div><br>I don't see your point, that's what I wrote...<br clear="all"><br>Matthieu<br>-- <br>French PhD student<br>Website : <a href="http://matthieu-brucher.developpez.com/">http://matthieu-brucher.developpez.com/</a><br>
Blogs : <a href="http://matt.eifelle.com">http://matt.eifelle.com</a> and <a href="http://blog.developpez.com/?blog=92">http://blog.developpez.com/?blog=92</a><br>LinkedIn : <a href="http://www.linkedin.com/in/matthieubrucher">http://www.linkedin.com/in/matthieubrucher</a>