[Numpy-discussion] F2PY and underscore problem
Thu Apr 5 11:50:09 CDT 2007
Zdeněk Hurák wrote:
> I am sorry to come up with a question that probably has been asked and
> answered many times but I honestly searched for an answer but failed to
> find one.
> I want to create Python modules from some Fortran numerical functions that
> rely on LAPACK. I start with a function SB02MD.f that provides a solver for
> algebraic Riccati equation (ARE) that can be obtained at
> http://www.slicot.de/. I proceeded the standard f2py way:
> f2py SB02MD.f -m are -h are1.pyf
> modified are1.pyf (saved as are.pyf) to tell which arguments are inputs and
> outputs and compiled the module:
> f2py -c are.pyf SB02MD.f --link-lapack_opt
> However, when trying to import the module, Python cries that there is and
> undefined symbol: sb02mw_. The same situation if I omit --link-lapack_opt.
What FORTRAN compiler are you using to build the module? What FORTRAN compiler
was used to build LAPACK?
"I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth."
-- Umberto Eco
More information about the Numpy-discussion