[Pyrex] ANN: Pyrex 0.9.4 - LValue Casts are Dead!
Lenard Lindstrom
len-l at telus.net
Thu Apr 20 04:22:46 CEST 2006
On 19 Apr 2006 at 20:15, Greg Ewing wrote:
> Lenard Lindstrom wrote:
>
> > It is a given that C++ compilers are not compatible. But a Pyrex
> > module compiled with the same C++ compiler as a dynamic library can
> > call its functions.
>
> It may work if the declarations are from an external
> .h file, but this is not an intentionally supported
> feature.
>
> In 0.9.4, external declarations not inside a "cdef extern
> from" block are wrapped in "extern C" when compiled as C++.
>
> Eventually there will be a way of explicitly declaring
> external linkages as C or C++.
>
When will an external C++ declaration ever be needed? Writing an
include file when one is missing for a C++ library will likely be
necessary anyways since class declarations are not possible with
Pyrex.
Lenard Lindstrom
<len-l at telus.net>
More information about the Pyrex
mailing list