On Thu, May 21, 2009 at 12:46 PM, Dag Sverre Seljebotn
<[email protected]> wrote:
> Lisandro wrote:
>> For this Cython code:
>>
>> cdef extern from "<sys/time.h>":
>>    pass
>>
>> generate the C include like htis:
>>
>> #include <sys/time.h>
>
> -0
>
> What is the point? It usually makes absolutely no difference for the C
> compiler, as "sys/time.h" isn't going to be located in
> build/temp-linux..../pyrex/ anyway.
>

IIUC, you are assuming that generated C sources are ALWAYS at
build/temp-linux..../pyrex/ . For my own projects, that is not the
case...


> (Unless you rely on the "-iquote" feature of gcc. I suppose we could start
> using -iquote it to point to the base of the .pyx file ... personally I
>

Well, if GCC is the only compiler you target for your code, then you
can pass the flag. But Cython should not rely on that IMHO.

>
> just consider this a misfeature of C preprocessor though.)
>

Perhaps, but despite that we have to live with it.



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