Link Pardiso solver with gfortran
Arjen Markus
arjen.markus895@gmail.com
Mon Oct 14 07:10:00 GMT 2013
Hello Behnam,
please understand that there is NO relationship between the name of
the source file and the name of the subroutine(s) it contains. It is
merely a convention to make them the same. It is the subroutine or
function statement that defines the name as it is to be used in
Fortran code.
The underscore you see in the error messages is added by the compiler
as a simple decoration. It defines the name of the program unit as
seen by the linker. In particular: all lowercase (Fortran is
case-insensitive and some but not all compilers translate the names to
lowercase) and an underscore appended to avoid clashes with system
routines or C routines.
So, no, you do not want to rename the files.
What you need to do is run the "nm" command for the BLAS and LAPACK
libraries that you use in the link command. That should you what the
actual names are in these libraries. (Use the man pages to read about
this command and its output)
Regards,
Arjen
2013/10/14 behnam <b.moghadassian@gmail.com>:
> Hi Arjen
>
> I checked and found that the files that are mentioned in the error message
> are without underscore (for example the error is "undefined reference to
> `dtrmm_' " and I have dtrmm.f in the BLAS folder). Should I change the name
> to dtrmm_.f? Another issue is that there are some errors that the filename
> cannot be found at all; for example I get this error: "undefined reference
> to `dlansy_' " but neither dlansy_ or dlansy.f can be found in my BLAS or
> lapack folders. Can you guess why?
>
> Thank you very much
>
> regards,
>
> Behnam
>
>
>
> --
> View this message in context: http://gcc.1065356.n5.nabble.com/Link-Pardiso-solver-with-gfortran-tp974022p975129.html
> Sent from the gcc - fortran mailing list archive at Nabble.com.
More information about the Fortran
mailing list