There are some websites that I had used:http://www.cnblogs.com/hellraider/archive/2012/09/29/2707231.html
http://www.recheliu.org/memo/buildarpackonwindowsforvisualstudio
step 1: Download mingw-w64-install and install.I installed MinGW-64 to C:\Program Files (x86)\mingw-w64.
step 2: To use MinGW shell, I installed mingw-get-inst-20120426.exe and choosed c,c++,fortran,msys.
step 3: Download ARPACK and unzip,change ARmake.inc as following:
home = /d/ARPACK
PLAT = x64
FC = /c/Program\ Files\ \(x86\)/mingw-w64/i686-4.9.3-posix-dwarf-rt_v4-rev1/mingw32/bin/gfortran.exe
FFLAGS = -O
RANLIB = /c/Program\ Files\ \(x86\)/mingw-w64/i686-4.9.3-posix-dwarf-rt_v4-rev1/mingw32/bin/ranlib.exe
step 4:open MinGW shell,and
cd /d/ARPACK
step 5:
export PATH=$PATH:/c/Program\ Files\ \(x86\)/mingw-w64/i686-4.9.3-posix-dwarf-rt_v4-rev1/mingw32/opt/bin
step 6:Change d/ARPACK/UTIL/second.f, Remove the sentence: EXTERNAL ETIME.
step 7:compile the .f to .o
make lib
step 8:wrap the *.o to .dll
/c/Program\ Files\ \(x86\)/mingw-w64/i686-4.9.3-posix-dwarf-rt_v4-rev1/mingw32/bin/dllwrap.exe --export-all-symbols BLAS/*.o LAPACK/*.o SRC/*.o UTIL/*.o -lgfortran --output-def arpack_x64.def -o arpack_x64.dll
step 9: Open a Visual Studio (64-bit) Command Prompt and:
cd d:\ARPACK
step 10: Generate the library:
lib.exe /machine:X86 /def:arpack_x64.def
then,you can use the .dll and .lib ~