Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

LAPACK in gfortran (Windows)

  1. Nov 11, 2012 #1
    Hi,

    I've been using gfortran on windows through the command line to compile .f95 files using the command

    gfortran file.f95

    to get an a.exe file which I can then run. However, I'm currently writing some Fortran code which needs some of the subroutines of the LAPACK package. I've been looking for a comprehensible explanation of how to use the LAPACK package with gfortran on windows and have only come across one (which does not work):

    http://www.cfd-online.com/Forums/main/70450-gfortran-lapack.html

    When i follow steps 3, 4 and 5 of that link with a code which uses LAPACK subroutines, I get an error message,

    liblapack.a(dsyev.o):dsyev.f:(.text+0x2ae): undefined reference to 'dlamch_'

    and some more of the same form. I've also tried using the procedure described here, http://gcc.gnu.org/wiki/LAPACK on Windows but when I run the makelibs.bat file I get many error messages like

    could not find C:\documents and settings\admin\desktop\new\lapack-3.4.0\INSTALL\*.o
    'testlsame' is not recognised as an internal or external command, operable program or batch file

    ...and many more.

    Any help would be appreciated.

    Thanks,

    Ted
     
  2. jcsd
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Can you offer guidance or do you also need help?
Draft saved Draft deleted



Similar Discussions: LAPACK in gfortran (Windows)
  1. Cuda for gfortran ? (Replies: 4)

  2. Fortran LAPACK DYSEV (Replies: 1)

Loading...