summaryrefslogtreecommitdiffstats
path: root/windows/hl
diff options
context:
space:
mode:
authorScott Wegner <swegner@hdfgroup.org>2007-04-30 21:36:54 (GMT)
committerScott Wegner <swegner@hdfgroup.org>2007-04-30 21:36:54 (GMT)
commita27b1b6e3176a96859539e9a89551f89502c2f9a (patch)
treef023e310129eebb629cc686cdb7dbbf016cfbfe1 /windows/hl
parent4e6026d44fab9d401626cd559740ea2110e3540a (diff)
downloadhdf5-a27b1b6e3176a96859539e9a89551f89502c2f9a.zip
hdf5-a27b1b6e3176a96859539e9a89551f89502c2f9a.tar.gz
hdf5-a27b1b6e3176a96859539e9a89551f89502c2f9a.tar.bz2
[svn-r13712] Various changes made to bring Windows example tests up to date.
Tested: VS 2005 on Win XP
Diffstat (limited to 'windows/hl')
-rw-r--r--windows/hl/fortran/examples/ex_lite/ex_lite.dsp7
-rw-r--r--windows/hl/fortran/examples/exlite.f9091
2 files changed, 4 insertions, 94 deletions
diff --git a/windows/hl/fortran/examples/ex_lite/ex_lite.dsp b/windows/hl/fortran/examples/ex_lite/ex_lite.dsp
index ff20b33..fa73d3b 100644
--- a/windows/hl/fortran/examples/ex_lite/ex_lite.dsp
+++ b/windows/hl/fortran/examples/ex_lite/ex_lite.dsp
@@ -26,7 +26,6 @@ CFG=ex_lite - Win32 Debug
# PROP Scc_ProjName ""
# PROP Scc_LocalPath ""
CPP=cl.exe
-F90=df.exe
RSC=rc.exe
!IF "$(CFG)" == "ex_lite - Win32 Release"
@@ -42,6 +41,7 @@ RSC=rc.exe
# PROP Intermediate_Dir "..\..\..\..\..\hl\fortran\examples\ex_lite\Release"
# PROP Ignore_Export_Lib 0
# PROP Target_Dir ""
+F90=df.exe
# ADD BASE F90 /compile_only /nologo /warn:nofileopt
# ADD F90 /compile_only /include:"..\..\..\..\..\proj\hdf5_fortran\release/" /include:"..\..\..\..\..\proj\hdf5_hl_fortran\release/" /nologo /warn:nofileopt /module:"Release/"
# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
@@ -53,7 +53,7 @@ BSC32=bscmake.exe
# ADD BSC32 /nologo
LINK32=link.exe
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
-# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib $(HDF5_EXT_ZLIB) $(HDF5_EXT_SZIP) hdf5_fortran.lib hdf5_hl_fortranr.lib /nologo /subsystem:console /machine:I386 /libpath:"..\..\..\..\..\proj\hdf5_fortran\release" /libpath:"..\..\..\..\..\proj\hdf5_hl_fortran\release"
+# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib $(HDF5_EXT_ZLIB) $(HDF5_EXT_SZIP) hdf5_fortran.lib hdf5_hl_fortranr.lib hdf5_hl_fortran.lib /nologo /subsystem:console /machine:I386 /libpath:"..\..\..\..\..\proj\hdf5_fortran\release" /libpath:"..\..\..\..\..\proj\hdf5_hl_fortran\release"
!ELSEIF "$(CFG)" == "ex_lite - Win32 Debug"
@@ -68,6 +68,7 @@ LINK32=link.exe
# PROP Intermediate_Dir "..\..\..\..\..\hl\fortran\examples\ex_lite\Debug"
# PROP Ignore_Export_Lib 0
# PROP Target_Dir ""
+F90=df.exe
# ADD BASE F90 /check:bounds /compile_only /dbglibs /debug:full /nologo /traceback /warn:argument_checking /warn:nofileopt
# ADD F90 /check:bounds /compile_only /dbglibs /debug:full /include:"..\..\..\..\..\proj\hdf5_fortran\debug/" /include:"..\..\..\..\..\proj\hdf5_hl_fortran\debug/" /nologo /traceback /warn:argument_checking /warn:nofileopt /module:"Debug/"
# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c
@@ -79,7 +80,7 @@ BSC32=bscmake.exe
# ADD BSC32 /nologo
LINK32=link.exe
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
-# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib hdf5_fortrand.lib hdf5_hl_fortrand.lib $(HDF5_EXT_ZLIB) $(HDF5_EXT_SZIP) /nologo /subsystem:console /debug /machine:I386 /nodefaultlib:"libc.lib" /pdbtype:sept /libpath:"..\..\..\..\..\proj\hdf5_fortran\debug" /libpath:"..\..\..\..\..\proj\hdf5_hl_fortran\debug"
+# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib hdf5_fortrand.lib hdf5_hl_fortrand.lib hdf5_hl_fortran.lib $(HDF5_EXT_ZLIB) $(HDF5_EXT_SZIP) /nologo /subsystem:console /debug /machine:I386 /nodefaultlib:"libc.lib" /pdbtype:sept /libpath:"..\..\..\..\..\proj\hdf5_fortran\debug" /libpath:"..\..\..\..\..\proj\hdf5_hl_fortran\debug"
# SUBTRACT LINK32 /incremental:no /nodefaultlib
!ENDIF
diff --git a/windows/hl/fortran/examples/exlite.f90 b/windows/hl/fortran/examples/exlite.f90
deleted file mode 100644
index 61949aa..0000000
--- a/windows/hl/fortran/examples/exlite.f90
+++ /dev/null
@@ -1,91 +0,0 @@
-! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-! Copyright by The HDF Group. *
-! Copyright by the Board of Trustees of the University of Illinois. *
-! All rights reserved. *
-! *
-! This file is part of HDF5. The full HDF5 copyright notice, including *
-! terms governing use, modification, and redistribution, is contained in *
-! the files COPYING and Copyright.html. COPYING can be found at the root *
-! of the source code distribution tree; Copyright.html can be found at the *
-! root level of an installed copy of the electronic HDF5 document set and *
-! is linked from the top-level documents page. It can also be found at *
-! http://hdfgroup.org/HDF5/doc/Copyright.html. If you do not have *
-! access to either file, you may request a copy from help@hdfgroup.org. *
-! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-!
-!
-! This file contains a FORTRAN90 example for the H5LT API
-!
-
-program lite_example
-
-use H5LT ! module of H5LT
-use HDF5 ! module of HDF5 library
-
-implicit none
-
-integer, parameter :: DIM1 = 4; ! Dimension of array
-character(len=9), parameter :: filename = "exlite.h5"! File name
-character(LEN=5), parameter :: dsetname1 = "dset1" ! Dataset name
-integer(HID_T) :: file_id ! File identifier
-integer(HSIZE_T), dimension(1) :: dims = (/DIM1/) ! Dataset dimensions
-integer :: rank = 1 ! Dataset rank
-integer, dimension(DIM1) :: buf1 ! Data buffer
-integer, dimension(DIM1) :: bufr1 ! Data buffer
-integer :: errcode ! Error flag
-integer :: i ! general purpose integer
-
-!
-! Initialize the data array.
-!
-do i = 1, DIM1
- buf1(i) = i;
-end do
-
-!
-! Initialize FORTRAN predefined datatypes.
-!
-call h5open_f(errcode)
-
-!
-! Create a new file using default properties.
-!
-call h5fcreate_f(filename, H5F_ACC_TRUNC_F, file_id, errcode)
-
-!
-! write dataset.
-!
-call h5ltmake_dataset_f(file_id, dsetname1, rank, dims, H5T_NATIVE_INTEGER, buf1, errcode)
-
-!
-! read dataset.
-!
-call h5ltread_dataset_f(file_id, dsetname1, H5T_NATIVE_INTEGER, bufr1, dims, errcode)
-
-!
-! compare read and write buffers.
-!
-do i = 1, DIM1
- if ( buf1(i) .ne. bufr1(i) ) then
- print *, 'read buffer differs from write buffer'
- print *, bufr1(i), ' and ', buf1(i)
- stop
- endif
-end do
-
-
-!
-! Close the file.
-!
-call h5fclose_f(file_id, errcode)
-
-!
-! Close FORTRAN predefined datatypes.
-!
-call h5close_f(errcode)
-
-!
-! end
-!
-end program lite_example
-