Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

h5cc(1) [debian man page]

h5cc(1) 						      General Commands Manual							   h5cc(1)

NAME
h5cc - Helper script to compile HDF5 applications. SYNOPSIS
h5cc [OPTIONS] <compile line> DESCRIPTION
h5cc can be used in much the same way MPIch is used to compile an HDF5 program. It takes care of specifying where the HDF5 header files and libraries are on the command line. h5cc supercedes all other compiler scripts in that if you've used them to compile the HDF5 library, then h5cc also uses those scripts. For example, when compiling an MPIch program, you use the mpicc script. If you've built HDF5 using MPIch, then h5cc uses the MPIch program for compilation. Some programs use HDF5 in only a few modules. It isn't necessary to use h5cc to compile those modules which don't use HDF5. In fact, since h5cc is only a convenience script, you are still able to compile HDF5 modules in the normal way. In that case, you will have to specify the HDF5 libraries and include paths yourself. An example of how to use h5cc to compile the program hdf_prog, which consists of modules prog1.c and prog2.c and uses the HDF5 shared library, would be as follows: # h5cc -c prog1.c # h5cc -c prog2.c # h5cc -shlib -o hdf_prog prog1.o prog2.o OPTIONS
-help Prints a help message. -echo Show all the shell commands executed. -prefix=DIR Use the directory DIR to find the HDF5 lib/ and include/ subdirectories. Default: prefix specified when configuring HDF5. -show Show the commands without executing them. -shlib Compile using shared HDF5 libraries. -noshlib Compile using static HDF5 libraries [default]. <compile line> The normal compile line options for your compiler. h5cc uses the same compiler you used to compile HDF5. Check your compiler's man- ual for more information on which options are needed. ENVIRONMENT
HDF5_CC Use a different C compiler. HDF5_CLINKER Use a different linker. HDF5_USE_SHLIB=[yes|no] Use shared version of the HDF5 library [default: no]. SEE ALSO
h5fc(1), h5c++(1) h5cc(1)

Check Out this Related Man Page

FORTRAN(1)							   User Commands							FORTRAN(1)

NAME
Fortran - Reports statistics regarding an HDF5 file and the objects in the file. DESCRIPTION
usage: h5fc [OPTIONS] <compile line> OPTIONS: -help This help message. -echo Show all the shell commands executed -prefix=DIR Prefix directory to find HDF5 lib/ and include/ subdirectories [default: /usr] -show Show the commands without executing them -showconfig Show the HDF5 library configuration summary -shlib Compile with shared HDF5 libraries -noshlib Compile with static HDF5 libraries [default] <compile line> - the normal compile line options for your compiler. h5fc uses the same compiler you used to compile HDF5. Check with your compiler's man pages for more information on which options are needed. You can override the compiler and linker to compile your program by setting the following environment variables accordingly: HDF5_FC - use a different Fortran 90 or 95 compiler HDF5_FLINKER - use a different linker HDF5_USE_SHLIB=[yes|no] - use shared or static version of the HDF5 library [default: no] You can also add or change paths and flags to the compile line using the following environment varibles or by assigning them to their counterparts in the 'Things You Can Modify to Override...' section of h5fc Variable Current value to be replaced HDF5_FFLAGS "" HDF5_LDFLAGS "" HDF5_LIBS "" Note that adding library paths to HDF5_LDFLAGS where another hdf5 version is located may link your program with that other hdf5 library version. COPYRIGHT
Copyright (C) 2011 Free Software Foundation, Inc. GNU Fortran comes with NO WARRANTY, to the extent permitted by law. You may redistribute copies of GNU Fortran under the terms of the GNU General Public License. For more information about these matters, see the file named COPYING SEE ALSO
The full documentation for Fortran is maintained as a Texinfo manual. If the info and Fortran programs are properly installed at your site, the command info Fortran should give you access to the complete manual. Fortran (Debian 4.6.1-4) 4.6.1 August 2011 FORTRAN(1)
Man Page