diff options
author | Pedro Vicente Nunes <pvn@hdfgroup.org> | 2003-10-20 21:04:20 (GMT) |
---|---|---|
committer | Pedro Vicente Nunes <pvn@hdfgroup.org> | 2003-10-20 21:04:20 (GMT) |
commit | e68e5aea56f6633e437d920a52f7a31065139bff (patch) | |
tree | f17b44f6d6eac035a4bb0c283e7a894c01a17b59 | |
parent | 0502d501c23f558a4bfa482449e898bcb1e585f9 (diff) | |
download | hdf5-e68e5aea56f6633e437d920a52f7a31065139bff.zip hdf5-e68e5aea56f6633e437d920a52f7a31065139bff.tar.gz hdf5-e68e5aea56f6633e437d920a52f7a31065139bff.tar.bz2 |
[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:
-rw-r--r-- | release_docs/INSTALL_codewarrior.txt | 32 | ||||
-rw-r--r-- | 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 <MY_INSTALL\MSL\MSL_C\MSL_Win32\Src\> + +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 <console.h> -#endif - #include <stdarg.h> #define MAXNUMOFTESTS 30 |