From c5888ae35b15c9a7d2a7e1e49290a3bbeb76a8da Mon Sep 17 00:00:00 2001 From: Pedro Vicente Nunes Date: Mon, 20 Oct 2003 15:46:07 -0500 Subject: [svn-r7677] Purpose: bug fix, update documentation Description: version 8 of Code Warrior has a bug on the open file function that causes one of our tests to fail documented this in the install instructions removed a CW specific header file include , that was left from version 6 from the file testhdf5.c Platforms tested: Code Warrior linux Misc. update: --- release_docs/INSTALL_codewarrior.txt | 32 ++++++++++++++++++++++++++------ test/testhdf5.c | 4 ---- 2 files changed, 26 insertions(+), 10 deletions(-) diff --git a/release_docs/INSTALL_codewarrior.txt b/release_docs/INSTALL_codewarrior.txt index 7d9133c..6993170 100644 --- a/release_docs/INSTALL_codewarrior.txt +++ b/release_docs/INSTALL_codewarrior.txt @@ -12,10 +12,10 @@ The following instructions assume we will be using the path D:\hdf5 for installi Pre conditions: ------------------------------------------------------------------------- Both the ZLIB and SZIP libraries are needed to link with HDF5. -The Code Warrior project file settings assumes ZLIB is intalled in D:\zlib\zlib.lib and SZIP is installed in -D:\szip\codewarrior\szip.lib -These precompiled libraries can be obtained from the HDF web site, please see hdf.ncsa.uiuc.edu for -downloading instructions. +The Code Warrior project file settings assumes ZLIB is intalled in D:\zlib\zlib.lib +and SZIP is installed in D:\szip\codewarrior\szip.lib +These precompiled libraries can be obtained from the HDF web site, +please see hdf.ncsa.uiuc.edu for downloading instructions. ------------------------------------------------------------------------- Setup @@ -37,8 +37,28 @@ To build the HDF5 library with Code Warrior: or, to redirect the output to a file called myfile.txt, Hdf5test debug > myfile.txt The test and tools files are generated in the same directory as - the those compiled with the Microsoft Visual Studio compiler. -5. Enjoy. + those compiled with the Microsoft Visual Studio compiler. + + +--------------------------------------------------------------------------- +Known problems +--------------------------------------------------------------------------- + +The test "testhdf5" fails on a open file call. This is caused by a CodeWarrior v8.0 +bug in the "open" function + +Metrowerks provides a patch for this error + +1) Edit the file file_io.win32.c, located on + +2) Change the following symbol to 1 instead of 0 + +#define _MSL_ALLOW_SHARED_WRITING 0 +/* Set this value to 1 for file opening with shared writing */ + +3) Add this source code to your project and relink it with your application. + A source code in a project overrides the library source. + --------------------------------------------------------------------------- diff --git a/test/testhdf5.c b/test/testhdf5.c index 175f711..1fd2f34 100644 --- a/test/testhdf5.c +++ b/test/testhdf5.c @@ -37,10 +37,6 @@ */ -#if defined __MWERKS__ -#include -#endif - #include #define MAXNUMOFTESTS 30 -- cgit v0.12