 
COMPILING A PROGRAM
                  
Following are instructions for compiling an application program on the 
window NT, and window 98, using the pgstk library that we provide 
or you build HDF4.2r0 and HDF5.  

In general, you compile your program as shown below.  

C or Fortran program on Windows NT/98:
----------------------------------------

1. Using Microsoft Visual C++ version 6.x version for C program.
   Using Digitalt Visual Fortran version 6.x version for Fortran program.

2. Set up environment variable "PGSHOME"
       Open autoexe.bat file and add 1 line at the end of line

	       Set PGSHOME=<top-level PGSTK directory>\TOOLKIT_MTD

	       where <top-level PGSTK directory> may be C:\PGSTKHOME. 

2. Under Tools->Options, select "Directories":
     Under "Show directories for", select "Include files".

     No fortran support:
         Add the following directories:

                C:\Program Files\ArrayVisualizer\INCLUDE		
                C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE
                C:\Program Files\Microsoft Visual Studio\VC98\MFC\INCLUDE
                <top-level HDF4 directory>\INCLUDE
                <top-level HDF5 directory>\hdf5lib\release\include
                <top-level jpeg>\include
		<top-level zlib>\include
		<top-level szip>\include
                <top-level PGSTK directory>\TOOLKIT_MTD\include 
                <top-level PGSTK directory>\TOOLKIT_MTD\include\CUC 
                <top-level PGSTK directory>\dev
 
     With Fortran support:
         Add the following directories:
                C:\Program Files\ArrayVisualizer\INCLUDE
                C:\Program Files\Microsoft Visual Studio\DF98\IMSL\INCLUDE
                C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE
                C:\Program Files\Microsoft Visual Studio\DF98\INCLUDE
                C:\Program Files\Microsoft Visual Studio\VC98\MFC\INCLUDE
                <top-level HDF4 directory>\INCLUDE
                <top-level HDF5 directory>\hdf5lib\release\include
		<top-level jpeg>\include
		<top-level zlib>\include
		<top-level szip>\include
                <top-level PGSTK directory>\TOOLKIT_MTD\include 
                <top-level PGSTK directory>\TOOLKIT_MTD\include\CUC 
                <top-level PGSTK directory>\dev

3. Under Tools->Options, select "Directories".
   Under "Show directories for", select "Library files".

     No fortran support:
         Add the following directories:
              C:\Program Files\ArrayVisualizer\LIB
              C:\Program Files\Microsoft Visual Studio\VC98\LIB
              C:\Program Files\Microsoft Visual Studio\VC98\MFC\LIB
              <top-level HDF4 directory>\lib
              <top-level HDF4 directory>\dlllib
              <top-level HDF5 directory>\hdf5lib\release\lib
	      <top-level jpeg>\lib
	      <top-level zlib>\lib
	      <top-level szip>\lib
              <top-level PGSTK directory>\dev\PGSTK\Release
	      <top-level PGSTK directory>\TOOLKIT_MTD\lib\nt_98

    With Fortran support:
         Add the following directories:

              C:\Program Files\ArrayVisualizer\LIB
              C:\Program Files\Microsoft Visual Studio\VC98\LIB
              C:\Program Files\Microsoft Visual Studio\VC98\MFC\LIB
              C:\Program Files\Microsoft Visual Studio\DF98\LIB
              C:\Program Files\Microsoft Visual Studio\DF98\IMSL\LIB
              <top-level HDF4 directory>\lib
              <top-level HDF4 directory>\dlllib
              <top-level HDF5 directory>\hdf5lib\release\lib
	      <top-level jpeg>\lib
	      <top-level zlib>\lib
	      <top-level szip>\lib
              <top-level PGSTK directory>\dev\PGSTK\Release
	      <top-level PGSTK directory>\TOOLKIT_MTD\lib\nt_98

    where <top-level PGSTK directory> may be C:\PGSTKHOME 
	  <top-level HDF4 directory> may be C:\HDF4.2r0
	  <top-level HDF5 directory> may be C:\hdf5
	  <top-level zlib> may be C:\Zlib-1.1.3


4. Under Project->Settings, select "Link":
  
   Add the following libraries to the beginning of the list 
   of Object/Library Modules:
       For files under test_MET: ws2_32.lib pgstk.lib hd420.lib hm420.lib hdf5.lib 
			         libjpeg.lib zlib.lib szlib.lib
       For files under test_TIME: ws2_32.lib pgstk.lib 

   The following libraries may (or may not) need to be included: 
       kernel32.lib user32.lib gdi32.lib winspool.lib comdig32.lib
       advapi32lib shell32.lib ole32.lib oleaut32.lib uuid.lib
       odbc32.lib odbccp32.lib hdf413.lib hm413.lib

5. Under Project->Settings, select "C/C++":
      For the "Preprocessor Definitions" add:  INTEL86, VISUAL_CPLUSPLUS
      The following were already there:   WIN32,_CONSOLE


NOTE:
=========

Please note that when editing the filetable.temp for any application 
(as directed in the MTD_TOOLKIT Users Guide for setting the path of the files) 
one should use "\", instead of "/", in the directory structure for NT/98 
applications such as:

10100|LogStatus|C:\PGSTKHOME\TOOLKIT_MTD\runtime\LogStatus
