From e68e5aea56f6633e437d920a52f7a31065139bff Mon Sep 17 00:00:00 2001 From: Pedro Vicente Nunes Date: Mon, 20 Oct 2003 16:04:20 -0500 Subject: [svn-r7678] Purpose: 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 e31fc44..c866cf6 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