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
Compiling Cif2mat with MSVC
- Download the latest Cif2mat/Mat3d Zip file.
- Unpack the Zip file with your favorite WinNT/95/98 uncompress tool into the desired location.
- Change to the cif2mat directory 'cd mat3d\cif2mat-src'.
- 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).
- Compile and link cif2mat with 'nmake -f makefile.msvc'.
- Nmake will leave a copy of cif2mat.exe in the mat3d diretory.
Compiling Cif2mat on a Unix machine
- Download the latest Cif2mat/Mat3d zip file.
- Unpack the tar-gzip files into the desired location. i.e. 'gunzip -c mat3d100.tgz | tar xf -'.
- Change to the cif2mat directory 'cd mat3d/cif2mat-src'.
- Examine makefile.unix and varify that the include paths and the compiler settings are in agreement with the machine's local settings.
- Compile and link cif2mat with 'make -f makefile.unix'.
- Make will leave a copy of cif2mat in the mat3d directory.
modified on September 9, 1999