Robert Bradshaw wrote:
> On Jun 1, 2009, at 7:33 AM, Lisandro Dalcin wrote:
>
>   
>> On Sat, May 30, 2009 at 12:04 PM, Robert Bradshaw
>> <[email protected]> wrote:
>>     
>>> On May 28, 2009, at 3:50 PM, Lisandro Dalcin wrote:
>>>
>>>       
>>>> Anyway, suppose you have installed both MSVC and MinGW, an as you  
>>>> are
>>>> a serious Cython developer, you want to run the testsuite with both.
>>>> The easiest way to select GCC would be to pass '--mingw' to
>>>> runtests.py, right?
>>>>         
>>> I hadn't thought of that. Are you saying that you would have a single
>>> Python install that works both with MSVC and MinGW?
>>>
>>>       
>> Of course!
>>
>> In my particular case, I have installed stock Python 2.6 (using the
>> MSI installed from python.org), and I routinely test mpi4py building
>> it with MSVC Express 2008 and MinGW32, with a couple of different MPI
>> implementations (DeinoMPI, MPICH2, and very recently Microsoft MPI).
>> Up to now, all work just fine. Of course, I've been very careful and
>> my code does not call anything from the C stdlib (which is know to
>> have issues when building with MinGW, because of possible mismatches
>> of the C runtime).
>>     
>
> Ah, I didn't know avoiding the C stdlib was all that one needed to do  
> here. You can tell I'm not a Windows developer :)
>   
IIRC, an additional point: I think using the stdlib should work as long 
as you link in the proper MinGW stdlib, and make sure not to exchange 
uses of the stdlib with modules compiled with a different compiler.

It's basically like having two different stdlibs -- file handles from 
one of them won't make sense to the other, buffering output in one of 
them won't be seen by the other, and so on.

Am I right? (This came form a numpy-discuss thread somewhere, they've 
discussed this a couple of times.)

Dag Sverre
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to