Main | March 2006 »

February 2006 Archives

February 27, 2006

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. 
  1. Install MinGW and make sure to include the gcc/g77 and make utilities.
  2. 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
  3. Compile ARPACK.
  4. 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

  5. Using lib.exe in Visual Studio:
    lib /machine:i386 /def:arpack_win32.def

  6. Link your code against your new arpack_win32.lib file!

About February 2006

This page contains all entries posted to David Gleich's Notebook in February 2006. They are listed from oldest to newest.

March 2006 is the next archive.

Many more can be found on the main index page or by looking through the archives.

Powered by
Movable Type 3.34