summaryrefslogtreecommitdiffstats
path: root/c++/examples
Commit message (Collapse)AuthorAgeFilesLines
* [svn-r16840] Bug fix:Albert Cheng2009-04-221-2/+2
| | | | | | | | | | | | | If the AR command has embedded shell separators such as the case of "AR = ar -X 64", $AR ends up as a blank. Solution: Put quotes around the command substitution string to protect against embedded separators. Applied the same to both AR and RANLIB assignments. Tested: At Up (AIX 5.3) only because that was where I discovered the error when AR is ar -X 64
* [svn-r16580] Description:Binh-Minh Ribler2009-03-155-5/+10
| | | | | | | | | | | Several C++ examples failed on liberty with similar message as in c++/test: /libexec/ld-elf.so.1: ./readdata: Undefined symbol "_ZNKSt5ctypeIcE13_M_widen_initEv" when "cerr/cout" is used. Skip these examples until I'm done with my currently urgent task (in a few weeks) and investigate this again. Platforms tested: FreeBSD/64 6.3 (liberty)
* [svn-r16430] Description:Quincey Koziol2009-02-051-3/+1
| | | | | | | Use call to Dataset::vlenReclaim() instead of calls to free() Tested on: FreeBSD/64 6.3 (liberty) w/gcc 4.3.3
* [svn-r14672] Purpose:Albert Cheng2008-02-251-69/+0
| | | | | | Cleanup. testexamples.sh is not used since v1.4.1. Removed it.
* [svn-r14640] Purpose:Albert Cheng2008-02-251-1/+5
| | | | | | | | | | | | | | | | | | Bug fix. Description: It used to clean out all *.h5 when done but this could cause a racing condition error if parallel make (e.g., gmake -j ...) is used because the "rm ... *.h5 ..." would remove *.h5 generaged and are still used by other test programs (e.g. xx_write/xx_read). Solution: Removed "*.h5" from the cleanup list since the test program has already taken care of removing temporary *.h5 generated. Tested platform: Kagiso. Not triple platforms tested since this is just a simple shell script change.
* [svn-r14639] Purpose:Albert Cheng2008-02-231-0/+4
| | | | | | | | | | | | Bug fix. Descriptions: Some examples are dependent on other files. E.g., a read program depend a write program to create the data file first. Adapted the dependencies from v1.8 Makefiles. Tested: By hand and also by h5committest.
* [svn-r14425] Description:Quincey Koziol2008-01-161-1/+1
| | | | | | | Corrected typo in C++ example for using select elements call. Tested on: Mac OS X/32 10.5.1 (amazon)
* [svn-r14423] Description:Quincey Koziol2008-01-151-1/+1
| | | | | | | | Change the 'coord' parameter for H5Sselect_elements() from 'hsize_t **' to 'hsize_t *' in this branch also. Tested on: Mac OS X/32 10.5.1 (amazon)
* [svn-r14329] Run make depend to regenerate all these Dependencies files afterAlbert Cheng2007-12-071-12/+11
| | | | removing the stream-vfd.
* [svn-r13949] Purpose:Albert Cheng2007-07-061-0/+1
| | | | | | | | | Cleanup. Added the compiler test script to distclean target. Tested platform: Just kagiso. No h5committest because it was a trivial addition to Makefile.in.
* [svn-r13861] Added Windows project files for C++ example that was added in ↵Scott Wegner2007-06-131-0/+6
| | | | | | | | | rev 13737. Also added this new example to related Windows test script, and updated the expected.out file. Note: expected.out is Windows-specific, and should probably be moved into the Windows all.zip file. If there is no opposition, I will make this change in a later revision. Tested: VS6 on WinXP
* [svn-r13819] Bug fix.Albert Cheng2007-05-301-1/+1
| | | | | | | | | The test scripts did not take in account that the binary has been installed somewhere other than the original prefix. Added a provision to allow explicit definition of $prefix to work. Tested: kagiso.
* [svn-r13748] Purpose: Fixed typoBinh-Minh Ribler2007-05-111-2/+3
| | | | | | | | Description: Removed duplicate declaration of a for loop index. Platform tested: AIX 5.1 (copper) - very minor
* [svn-r13737] Purpose: Adding exampleBinh-Minh Ribler2007-05-093-1/+154
| | | | | | | | | | Description: Added an example showing the use of variable-length string datatype. Platforms tested: AIX 5.1 (copper) Linux 2.6 (kagiso) FreeBSD (duty)
* [svn-r13641] Description:Albert Cheng2007-04-111-7/+8
| | | | | | | | Updated comments and some cosmetic rearrangement. No substance changes. Tested platform: Copper.
* [svn-r13632] Purpose:Albert Cheng2007-04-101-4/+4
| | | | | | | | | | | Bug Fix. Description: Removed the wrongly added "extern C" heading for the protocols of sub1 and sub2. Tested: Kagiso. (will test them over at NCSA.)
* [svn-r13619] Purpose:Albert Cheng2007-04-091-3/+14
| | | | | | | | | | | bug fix. Description: SunOS does not support h5c++ -o a.out libapph5c++.a. Skip this test if I am in a SunOS system. Tested: osage and sol.
* [svn-r13613] Purpose:Albert Cheng2007-04-081-74/+171
| | | | | | | | | | | | | | | Bug fix (ID 729) Description: h5c++ intercepted *.a files unnecessarily and forgot to put them back in. Solution: Removed the interception of *.a file. Setup testh5c++.sh to run various tests for h5c++. Tested: Copper.
* [svn-r13608] Purpose:Albert Cheng2007-04-061-2/+1
| | | | | | | | | | new feature. Description: Added test scripts for testing the compiler commands. Tested: kagiso(serial & pp)
* [svn-r13513] a: Command not found.Albert Cheng2007-03-141-0/+164
| | | | | | | M MANIFEST AM examples/testh5cc.sh.in AM fortran/examples/testh5fc.sh.in AM c++/examples/testh5c++.sh.in
* [svn-r13316] Updated Copyright notices.Albert Cheng2007-02-1410-38/+48
| | | | Tested platform: Kagiso (serial, pp)
* [svn-r12203] Purpose: MaintenanceBinh-Minh Ribler2006-04-067-30/+18
| | | | | | | | | | Description: Added alias H5std_string to be either ::string or std::string. Platforms tested: Linux 2.4 (heping) SunOS 5.8 64-bit (sol) HPUX 11.00 (kelgia)
* [svn-r12160] Purpose:James Laird2006-03-271-2/+3
| | | | | | | | | | | | | | | | | | | Added test Description: The deploy Daily Test is now more robust Solution: Previously, the Daily Tests (using the bin/snapshot script) would run bin/deploy to install HDF5 into a directory other than the --prefix specified at configure-time. However, this new installation was never tested using make check-install. Modified bin/snapshot to clean the test directory and run make check-install for the newly-deployed library. Platforms tested: tested snapshot script on mir. No changes to code. Trial by fire in Daily Tests tonight!
* [svn-r11745] Purpose: Example improvementBinh-Minh Ribler2005-11-207-12/+67
| | | | | | | | | | | Description: Improved the use of std members. Platforms tested: Linux 2.4 (heping) SunOS 5.8 64-bit (sol) AIX 5.1 (copper) HPUX 11.00 (kelgia)
* [svn-r11570] Purpose:Albert Cheng2005-10-171-0/+13
| | | | | | | | | | | | | | Appearance change. Description: depend1.in: Change the style of the copyright generation commands to a simplier style. Dependencies: Regenerated the Dependencies file. Platforms tested: Tested in heping in serial and parallel modes.
* [svn-r11488] Purpose:Quincey Koziol2005-10-018-84/+96
| | | | | | | | | | | Code cleanup Description: Tweak copyright on C++ source files to reduce whining by copyright checking script. Platforms tested: FreeBSD 4.11 (sleipnir) w/C++
* [svn-r11246] Purpose:Quincey Koziol2005-08-137-129/+129
| | | | | | | | | | | | | | | | | | | | Code cleanup Description: Trim trailing whitespace, which is making 'diff'ing the two branches difficult. Solution: Ran this script in each directory: foreach f (*.[ch] *.cpp) sed 's/[[:blank:]]*$//' $f > sed.out && mv sed.out $f end Platforms tested: FreeBSD 4.11 (sleipnir) Too minor to require h5committest
* [svn-r9729] Purpose:Quincey Koziol2004-12-294-8/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug Fix/Code Cleanup/Doc Cleanup/Optimization/Branch Sync :-) Description: Generally speaking, this is the "signed->unsigned" change to selections. However, in the process of merging code back, things got stickier and stickier until I ended up doing a big "sync the two branches up" operation. So... I brought back all the "infrastructure" fixes from the development branch to the release branch (which I think were actually making some improvement in performance) as well as fixed several bugs which had been fixed in one branch, but not the other. I've also tagged the repository before making this checkin with the label "before_signed_unsigned_changes". Platforms tested: FreeBSD 4.10 (sleipnir) w/parallel & fphdf5 FreeBSD 4.10 (sleipnir) w/threadsafe FreeBSD 4.10 (sleipnir) w/backward compatibility Solaris 2.7 (arabica) w/"purify options" Solaris 2.8 (sol) w/FORTRAN & C++ AIX 5.x (copper) w/parallel & FORTRAN IRIX64 6.5 (modi4) w/FORTRAN Linux 2.4 (heping) w/FORTRAN & C++ Misc. update:
* [svn-r9458] Purpose: Fixing minor bugBinh-Minh Ribler2004-10-261-1/+1
| | | | | | | | | | | | | | | | Description: Kent reported that "uint" used in this example caused error when built with MS Visual Studio compiler. Solution: Changed to "int." Platforms tested: Very minor, so I only tested on eirene. I'll let Kent know to check on Windows. Misc. update:
* [svn-r8996] Purpose:Quincey Koziol2004-08-031-1/+1
| | | | | | | | | | | Code cleanup Description: Clean up some temporary files. Platforms tested: FreeBSD 4.10 (sleipnir) w/C++ Not tested by h5committest
* [svn-r8829] Purpose: Update Makefile.inBinh-Minh Ribler2004-07-081-2/+1
| | | | | | | | | | | Description: Removed macro H5_FILES from Makefile.in so that output files from the example programs will not be installed. Platforms tested: FreeBSD 4.10 (sleipnir) I also tried to test on Linux 2.4 (eirene) but there was a failure in the C test.
* [svn-r8815] Purpose: Remove filesBinh-Minh Ribler2004-07-076-0/+0
| | | | | | | | | | | | | Description: These data files are generated by the example programs and shouldn't need to be in the CVS. Removed them. Platforms tested: SunOS 5.7 (arabica) Linux 2.4 (eirene) Misc. update:
* [svn-r7738] Purpose:Binh-Minh Ribler2003-10-261-0/+6
| | | | | | | | | | | | | | | | Fix example Description: On Solaris 64 (Sol), the output has garbage for a dataset when fill value is not set. Solution: Added setting fill value to the dataset first. Platforms: SunOS 5.7 (arabica) Linux 2.4 (eirene) SunOS sol 5.8 (sol)
* [svn-r7215] Purpose:Binh-Minh Ribler2003-07-131-2/+2
| | | | | | | | | | | | | | | | | | | | | Bug fix Description: Corrected the order of the program files in TEST_SRC from: compound.cpp h5group.cpp create.cpp readdata.cpp chunks.cpp \ extend_ds.cpp writedata.cpp to: create.cpp readdata.cpp writedata.cpp compound.cpp extend_ds.cpp \ chunks.cpp h5group.cpp Platforms tested: I used my h5cppcommittest, a modified version of h5committest. It tested only on arabica and verbena, since the change is trivial and I need to get Albert's help on the 3rd platform! Misc. update:
* [svn-r7104] Purpose:Binh-Minh Ribler2003-06-257-134/+240
| | | | | | | | | | | | | | | | | Bug fix Description: Missing returning error for failures occur in C++ examples. Solution: Added "return -1;" when an exception is caught. Also, turned off automatic error printing so that the C++ API will catch and handle the failures. Platforms: SunOS 5.7 (arabica) Linux 2.4 (eirene) IRIX 6.5.11 (modi4)
* [svn-r7039] Bill Wendling2003-06-131-7/+7
| | | | | | | | | | | | | | | | | Purpose: Bug Fix Description: There was another GNU-make-ism in the C++ examples Makefile.in that I didn't clean up. Solution: Changed the "$<" to the name of the file to compile. Platforms tested: Copper (Small fix...problem was on Copper). Misc. update:
* [svn-r6981] Purpose:Bill Wendling2003-06-051-21/+19
| | | | | | | | | | | | | | | | | Utility Addition Description: Added h5c++ script file to compile HDF5 C++ applications. Modified so that these are compiled only during a make check-install action and then only with the h5c++ script. Platforms tested: Verbena (Fortran & C++) Arabica (Fortran & C++) Modi4 (Fortran & Parallel) Misc. update:
* [svn-r6842] Purpose:Bill Wendling2003-05-081-2/+0
| | | | | | | | | | | | | | | | | | | Code Cleanup Description: Warning messages were being produced by the "make" program because the "docdir" was being specified twice as a target in the generated Makefiles. This is because the "EXAMPLESDIR" was also defined as "docdir". Solution: Made "EXAMPLESDIR" unique for C, Fortran, and C++ in the commence.in file and removed EXAMPLESDIR from the Makefile.ins Platforms tested: Dangermouse (only affects make system, not code). Misc. update:
* [svn-r6510] Purpose:Binh-Minh Ribler2003-03-207-21/+0
| | | | | | | | | | | | | | | | | Cleanup Description: Removed "using namespace std" since it's in namespace H5 already. Platforms tested: HPUX 11.00 (kelgia) Linux 2.2x (eirene) IRIX 6.5.11 (modi4) SunOS 5.7 (arabica) - by Elena Misc. update:
* [svn-r6485] Purpose:Bill Wendling2003-03-177-7/+7
| | | | | | | | | | | | Bug Fix Description: "using namespace std" isn't supported on HP-UX. We ahve the H5_NO_STD flag begin set, but it wasn't being used. Solution: Added the check to the #ifdef line to see if H5_NO_STD is defined before trying to use it in the program. Platforms tested: Kelgia
* [svn-r6236] Purpose: CopyrightBinh-Minh Ribler2003-01-078-3/+111
| | | | | | | | | Description: Added copyright notice to C++ API files, including *.h, *.cpp, and Makefile.in Platforms: Linux 6.2 (eirene)
* [svn-r4849] Bill Wendling2002-01-221-5/+0
| | | | | | | | | | | Purpose: Fix fix Description: Moved Binh-Minh's fix of the lack of support for C++ in libtool by adding the DEFAULT_LIBS macro into the configure.in and config/commence.in files. Solution: Put it into the configure.in and commence.in files. Reran autoconf.
* [svn-r4847] Binh-Minh Ribler2002-01-221-10/+16
| | | | | | | | | | | | | | | | | | | Purpose: Added platform support Description: The current libtool doesn't fully support C++ yet, so until it does, the default libraries have to be manually specify. Some minor cleanups needed. Solution: Added DEFAULT_LIBS=@DEFAULT_LIBS@ to use new macro for default library. Added $(DEFAULT_LIBS) to link lines. Removed inappropriate comments. Platforms tested: IRIX64 (modi4) I'll check out again to make sure I haven't broken anything else.
* [svn-r4466] Bill Wendling2001-09-211-2/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | Purpose: Feature Add Description: Added "install-example" and "install-all" to the Makefile system. The behaviour of the "make install*" options: make install - Installs binaries, libraries, include files, and example programs. make install-examples - Installs only the example programs. The directories are: ${prefix}/doc/hdf5/examples/{c,c++,fortran} make install-all - Install the binaries, libraries, include files, example programs, and documentation. The whole kit-n'-caboodle. make uninstall-examples - Get rid of those example files (but not the ${prefix}/doc/hdf5/examples/... directories) There's a new bin/ program which helps create directories which are deeply nested called "mkdirs". It's a simple shell script. Platforms tested: Linux
* [svn-r4298] Bill Wendling2001-08-011-0/+3
| | | | | Purpose: Regenerated Dependencies Files
* [svn-r3576] Purpose:Bill Wendling2001-03-081-1/+1
| | | | | | | | | | | Update Description: We now have a "real" testing thingy for the C++ code. We don't need to run things in the examples directory. Solution: Commented out the "TEST_SCRIPT" line. Platforms tested: Linux
* [svn-r3537] Purpose:Bill Wendling2001-03-021-2/+2
| | | | | | | | | | | | Bug Fix Description: Wasn't building the test programs if user simply did a build with ``make check'' instead of ``make all && make check''. Solution: Put the test programs in the TEST_PROGS macro so that they'd be built. Platforms tested: Linux
* [svn-r3100] Purpose:Bill Wendling2000-12-082-4/+4
| | | | | | | | | | | Fix Description: When not building in the same directory, we needed to tell the checker wherre to look for files. Solution: Put $(srcdir) before things which needed it. Platforms tested: Linux
* [svn-r3097] Purpose:Bill Wendling2000-12-083-2/+141
| | | | | | | | | Add Description: Adding a small amount of testing to the C++ library until "real" testing can be created. (We use the examples). Platforms tested: Linux
* [svn-r3090] Purpose:Bill Wendling2000-12-071-5/+5
| | | | | | | | | | | Fix Description: Windows couldn't handle the .C extension. The filenames had to be changed to *.cpp instead. Solution: Changed in the Makefiles to accomodate said change. Platforms tested: Eyeballed.