linking C code with Fortran module.function() -
i have build c shared library (.so) under solaris, in order use dlm (dynamic loadable module) exelis idl language.
this c library must use fortran f90 functions, included in fortran modules.
i compile both c , fortran code (with -fpic, -g, ...) have problem call fortran libraries c.
in .so files, fortran functions included in modules named module.function
eg: $ nm idl_spi.so [290] |...|func |glob |0 |15 spi_m_libscient.spi_scient_init_common_
in c code, can't use of :
spi_scient_init_common_()
=> symbol not found in library (uncomplete name)
spi_m_libscient.spi_scient_init_common_()
=> unknown structure spi_m_libscient
is there way call fortran module_name.function_name() c ?
or change fortran behaviour when compiling module.function(), rename example module__function in objet file
i find f90 command line option
Comments
Post a Comment