Simply fortran 2 安装
To the list of object files and libraries. I’m replying to my own message, as I have found aĪt final linking stage of my code, I add the fileīLACS/SRC/MPI/INTERNAL/bi_f77_get_constants.o home/duanple/scalapack/BLACS/LIB/blacsF77init_MPI-LINUX-0.a(Cblacs_pinfo.o): In function `Cblacs_pinfo’:īlacs_pinfo_.c:(.text+0圆5): undefined reference to `bi_f77_get_constants_’īlacs_pinfo_.c:(.text+0x9d): undefined reference to `bi_f77_init_’ Pdscaex.f:(.text+0x590): undefined reference to `blacs_gridexit_’ Pdscaex.f:(.text+0x14a): undefined reference to `blacs_exit_’ Pdscaex.f:(.text+0x114): undefined reference to `blacs_gridinfo_’
Pdscaex.f:(.text+0xf0): undefined reference to `blacs_gridinit_’
Pdscaex.f:(.text+0xca): undefined reference to `blacs_get_’ Pdscaex.f:(.text+0x4d): undefined reference to `blacs_pinfo_’ Mpif90 -lg2c -o /home/duanple/scalapack/scalapack-1.8.0/TESTING/xdscaex pdscaex.o pdscaexinfo.o /home/duanple/scalapack/scalapack-1.8.0/libscalapack.a /home/duanple/scalapack/BLACS/LIB/blacs_MPI-LINUX-0.a /home/duanple/scalapack/BLACS/LIB/blacsCinit_MPI-LINUX-0.a /home/duanple/scalapack/BLACS/LIB/blacsF77init_MPI-LINUX-0.a /home/duanple/scalapack/BLACS/LIB/blacs_MPI-LINUX-0.a /home/duanple/scalapack/lapack-3.2.1/lapack_LINUX.a /home/duanple/scalapack/lapack-3.2.1/blas_LINUX.a /home/duanple/intel/ict/3.0.1/mpi/3.0/lib/libmpi.a Mpif90 -o /home/duanple/scalapack/scalapack-1.8.0/TESTING/xdscaex pdscaex.o pdscaexinfo.o /home/duanple/scalapack/scalapack-1.8.0/libscalapack.a /home/duanple/scalapack/BLACS/LIB/blacs_MPI-LINUX-0.a /home/duanple/scalapack/BLACS/LIB/blacsCinit_MPI-LINUX-0.a /home/duanple/scalapack/BLACS/LIB/blacsF77init_MPI-LINUX-0.a /home/duanple/scalapack/BLACS/LIB/blacs_MPI-LINUX-0.a /home/duanple/scalapack/lapack-3.2.1/lapack_LINUX.a /home/duanple/scalapack/lapack-3.2.1/blas_LINUX.a /home/duanple/intel/ict/3.0.1/mpi/3.0/lib/libmpi.a Then you don’t need to bother with this issue of linking. Or compiler vendors: In this case you probably could use the MKL librariesīy Intel.
#SIMPLY FORTRAN 2 安装 64 BIT#
Our 64 bit Fedora Core 6 (AMD Opteron) the rpm file is ‘compat-libf2c’.]īut once you have your code running you probably want to eitherĬompile faster BLAS and LAPACK libraries or use ones provided by hardware you might need libg2c.so (libg2c.a?) installed on your machine. Psblastst.f:(.text+0xfb4b): undefined reference to `do_fio’ Psblastst.f:(.text+0xfb30): undefined reference to `do_fio’ Psblastst.f:(.text+0xfafc): undefined reference to `do_fio’ Psblastst.f:(.text+0xfae2): undefined reference to `do_fio’
Psblastst.f:(.text+0xfac7): undefined reference to `do_fio’ LAPACKLIB = /home/duanple/scalapack/lapack-3.2.1/lapack_LINUX.a # The name of the libraries to be created/linked toīLASLIB = /home/duanple/scalapack/lapack-3.2.1/blas_LINUX.a SMPLIB = /home/duanple/intel/ict/3.0.1/mpi/3.0/lib/libmpi.aīLACSFINIT = $(BLACSdir)/blacsF77init_MPI-LINUX-0.aīLACSCINIT = $(BLACSdir)/blacsCinit_MPI-LINUX-0.aīLACSLIB = $(BLACSdir)/blacs_MPI-LINUX-0.a # Will need to comment out these 6 lines if using PVM # MPI setup tailor to your system if using MPIBLACS Home = /home/duanple/scalapack/scalapack-1.8.0 Let me know if you have any other question. gfortran, g95 are fine.įor more details on LAPACK 3.2 release, please read the Since 3.2, LAPACK moved to fortran 90 standard, so you cannot use g77 Invalid token at (2) in expression or subexpression at (1) Invalid declaration of or reference to symbol `maxloc’ at (^) Reference to unimplemented intrinsic `MAXLOC’ at (^) (assumed EXTERNAL)