Compiling ARPACK on Win32
Update: Someone actually linked to them! They wrote a much better guide! Using ARPAC with Visual Studio (under XP)
I made these notes a while back, and thought I'd actually put them on the web.
- Install MinGW and make sure to include the gcc/g77 and make utilities.
- Edit ARmake.inc and change the following lines:
FC = g77 FFLAGS = -O2 -mno-cygwin LDFLAGS = CD = cd LN = ln LNFLAGS = -s MAKE = /bin/make RM = rm RMFLAGS = -f SHELL = /bin/sh
- Compile ARPACK.
- Run:
dllwrap --export-all-symbols -mno-cygwin --output-def arpack_win32.def -o arpack_win32.dll BLAS/*.o LAPACK/*.o UTIL/*.o SRC/*.o -lg2c
- Using lib.exe in Visual Studio:
lib /machine:i386 /def:arpack_win32.def
- Link your code against your new arpack_win32.lib file!