[f2py] Module problem
Eduardo A. Gonzalez
eddie@pact.cpes.sussex.ac.uk
Mon, 11 Mar 2002 10:37:35 +0000 (GMT)
Hi all,
I am getting the errors below when using f2py (version 2.13.175-1222) with
my fortran 90 module. I have solved the problem modifiying the
f90mod_rules.py and adding f2py_rout before #modulename# in line 156. Is
that the correct solution?
156c156
< cadd('\t{"%s",-1,{{-1}},0,NULL,(void
*)f2py_rout_#modulename#_%s_%s,doc_f2py_rout_#modulename#_%s_%s},'%(b['name'],m['name'],b['name'],m['name'],b['name']))
---
> cadd('\t{"%s",-1,{{-1}},0,NULL,(void
*)#modulename#_%s_%s,doc_#modulename#_%s_%s},'%(b['name'],m['name'],b['name'],m['name'],b['name']))
Cheers,
Eddie.
------------------------------------------------------------------------
PyLSSmodule.c:556: `PyLSS_wtheta_read_input' undeclared here (not in a
function)
PyLSSmodule.c:556: initializer element is not constant
PyLSSmodule.c:556: (near initialization for `f2py_wtheta_def[14].func')
PyLSSmodule.c:556: `doc_PyLSS_wtheta_read_input' undeclared here (not in a
funct
ion)
PyLSSmodule.c:556: initializer element is not constant
PyLSSmodule.c:556: (near initialization for `f2py_wtheta_def[14].doc')
PyLSSmodule.c:557: `PyLSS_wtheta_read_cat' undeclared here (not in a
function)
PyLSSmodule.c:557: initializer element is not constant
PyLSSmodule.c:557: (near initialization for `f2py_wtheta_def[15].func')
PyLSSmodule.c:557: `doc_PyLSS_wtheta_read_cat' undeclared here (not in a
functio
n)
PyLSSmodule.c:557: initializer element is not constant
PyLSSmodule.c:557: (near initialization for `f2py_wtheta_def[15].doc')
PyLSSmodule.c:558: `PyLSS_wtheta_show_input' undeclared here (not in a
function)
PyLSSmodule.c:558: initializer element is not constant
PyLSSmodule.c:558: (near initialization for `f2py_wtheta_def[16].func')
PyLSSmodule.c:558: `doc_PyLSS_wtheta_show_input' undeclared here (not in a
funct
ion)
PyLSSmodule.c:558: initializer element is not constant
PyLSSmodule.c:558: (near initialization for `f2py_wtheta_def[16].doc')
PyLSSmodule.c:559: `PyLSS_wtheta_cf_calc' undeclared here (not in a
function)
PyLSSmodule.c:559: initializer element is not constant
PyLSSmodule.c:559: (near initialization for `f2py_wtheta_def[17].func')
PyLSSmodule.c:559: `doc_PyLSS_wtheta_cf_calc' undeclared here (not in a
function
)
PyLSSmodule.c:559: initializer element is not constant
PyLSSmodule.c:559: (near initialization for `f2py_wtheta_def[17].doc')
PyLSSmodule.c:560: `PyLSS_wtheta_wout' undeclared here (not in a function)
PyLSSmodule.c:560: initializer element is not constant
PyLSSmodule.c:560: (near initialization for `f2py_wtheta_def[18].func')
PyLSSmodule.c:560: `doc_PyLSS_wtheta_wout' undeclared here (not in a
function)
PyLSSmodule.c:560: initializer element is not constant
PyLSSmodule.c:560: (near initialization for `f2py_wtheta_def[18].doc')
PyLSSmodule.c:197: warning: `doc_f2py_rout_PyLSS_wtheta_read_input'
defined but
not used
PyLSSmodule.c:207: warning: `f2py_rout_PyLSS_wtheta_read_input' defined
but not
used
PyLSSmodule.c:277: warning: `doc_f2py_rout_PyLSS_wtheta_read_cat' defined
but no
t used
PyLSSmodule.c:286: warning: `f2py_rout_PyLSS_wtheta_read_cat' defined but
not us
ed
PyLSSmodule.c:346: warning: `doc_f2py_rout_PyLSS_wtheta_show_input'
defined but
not used
PyLSSmodule.c:354: warning: `f2py_rout_PyLSS_wtheta_show_input' defined
but not
used
PyLSSmodule.c:404: warning: `doc_f2py_rout_PyLSS_wtheta_cf_calc' defined
but not
used
PyLSSmodule.c:413: warning: `f2py_rout_PyLSS_wtheta_cf_calc' defined but
not use
d
PyLSSmodule.c:470: warning: `doc_f2py_rout_PyLSS_wtheta_wout' defined but
not us
ed
PyLSSmodule.c:479: warning: `f2py_rout_PyLSS_wtheta_wout' defined but not
used
make: *** [PyLSSmodule.o] Error 1