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 :)

> OTOH, most of the Cython testsuite pass happily with the stock Python
> 2.6 and MinGW32. The only offending part are test like 'cdef extern
> void foo()', as that end-up with linker errors.


Do you have any ideas on how best to fix this? (I suppose we could  
make our own library with these fake stubs, but that seems kludgy and  
overkill)

- Robert

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

Reply via email to