On Thu, Jun 4, 2009 at 3:49 PM, David Martin <[email protected]> wrote:
> Lisandro Dalcin wrote:
>
> I was mostly talking about the linker errors with "cdef extern" in the
> tests, but fixing the INCLUDE_DIRS issue would also be nice. If you know
> what needs to be done to fix the tests regarding cdef extern and any of the
> other failures in that log I sent you I can get to work on those.
>

Well, I'm not sure how to fix these tests without destroying what them
are trying to test. As quick fist fix would be to disable them for the
Win case.

BTW, there are things that should be improved in Cython. For example,

1) If we write "cdef extern void foo()", then Cython should emit a
prototype with DL_IMPORT
2) If we write "cdef public void bar(): pass", then Cython should emit
a prototype with DL_EXPORT

Currently, Cython used DL_EXPORT for both of them.

Of course, a key question about using DL_IMPORT... What would happen
if the 'void foo()' function is not actually in a DLL, but on a static
library, or some extra C file built together with the Cython-generated
C code to build-up the final extension module?





-- 
Lisandro Dalcín
---------------
Centro Internacional de Métodos Computacionales en Ingeniería (CIMEC)
Instituto de Desarrollo Tecnológico para la Industria Química (INTEC)
Consejo Nacional de Investigaciones Científicas y Técnicas (CONICET)
PTLC - Güemes 3450, (3000) Santa Fe, Argentina
Tel/Fax: +54-(0)342-451.1594
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to