C shared library is not updated after FORTRAN source is recompiled
Compile and call inlined Fortran 2003 source code from Perl
Brought to you by:
rongrw
When the inlined FORTRAN source code is modified, Inline::F2003 recompiles the source code and builds a new shared library. However, the C shared library is not rebuilt. Consequently, when the C shared library is loaded, it then loads the previously built F2003 shared library instead of the new one.
What is required is for Inline::C to recompile the C source code whenever Inline::F2003 has built a new shared library. The "FORCE_BUILD" config option could be used for this purpose.
Work on this ticket has begun. Inline::F2003 will maintain a new package variable, %F2003Lib, which will contain info about the built F2003 shared library. This variable will be exported automatically to the application program for easy use with Inline::C.
The changes have been implemented in Inline::F2003 and were tested. The fix will be included in the next release (v1.01) of matopmul.