Compiling Cif2mat

Written with C and uses the standard C libraries. Cif2mat has been succesfully compiled on unix machines (SunOS, Solaris, HPUX) with gcc compiler and on WinNT with MS Visual C++ (makefiles for both platforms are included). It should be fairly simple to port it to other platforms if neccessary.

Compiling Cif2mat with MSVC

  1. Download the latest Cif2mat/Mat3d Zip file.
  2. Unpack the Zip file with your favorite WinNT/95/98 uncompress tool into the desired location.
  3. Change to the cif2mat directory 'cd mat3d\cif2mat-src'.
  4. Varify that MS Visual C++ is installed on the machine (you might need to tweak makefile.msvc if you are planning on using a different compiler).
  5. Compile and link cif2mat with 'nmake -f makefile.msvc'.
  6. Nmake will leave a copy of cif2mat.exe in the mat3d diretory.

Compiling Cif2mat on a Unix machine

  1. Download the latest Cif2mat/Mat3d zip file.
  2. Unpack the tar-gzip files into the desired location. i.e. 'gunzip -c mat3d100.tgz | tar xf -'.
  3. Change to the cif2mat directory 'cd mat3d/cif2mat-src'.
  4. Examine makefile.unix and varify that the include paths and the compiler settings are in agreement with the machine's local settings.
  5. Compile and link cif2mat with 'make -f makefile.unix'.
  6. Make will leave a copy of cif2mat in the mat3d directory.


modified on September 9, 1999