Re: [Numpy-discussion] Meta: too many numerical libraries doing thesame

"eric" <eric@enthought.com> writes:
If you rely on dynamic linking for cross-module calls, you'd have the same problem with Unix, as different compilers use different name-mangling schemes. One way around this would be to limit cross-module calls to C functions compiled with "C" linking. Better yet, don't rely on dynamic linking at all and export a module's C API via a Python CObject, as described in the extension manual, and declare all symbols as static (except for the module initialization function of course). In my experience that is the only method that works on all platforms, with all compilers. Of course this also assumes that interfaces are at the C level. Konrad. -- ------------------------------------------------------------------------------- Konrad Hinsen | E-Mail: hinsen@cnrs-orleans.fr Centre de Biophysique Moleculaire (CNRS) | Tel.: +33-2.38.25.56.24 Rue Charles Sadron | Fax: +33-2.38.63.15.17 45071 Orleans Cedex 2 | Deutsch/Esperanto/English/ France | Nederlands/Francais -------------------------------------------------------------------------------
participants (1)
-
Konrad Hinsen