Unix and Linux Discussions Tagged with compile |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
0 |
25,923 |
Shell Programming and Scripting |
|
|
|
1 |
13,432 |
UNIX for Advanced & Expert Users |
|
|
|
1 |
7,047 |
Shell Programming and Scripting |
|
|
|
1 |
6,519 |
Programming |
|
|
|
1 |
10,489 |
UNIX for Advanced & Expert Users |
|
|
|
9 |
12,739 |
Solaris |
|
|
|
14 |
6,461 |
Programming |
|
|
|
1 |
6,466 |
UNIX for Beginners Questions & Answers |
|
|
|
11 |
7,270 |
UNIX for Beginners Questions & Answers |
|
|
|
2 |
2,002 |
Programming |
|
|
|
1 |
35,739 |
Shell Programming and Scripting |
|
|
|
0 |
7,496 |
AIX |
|
|
|
4 |
10,120 |
Slackware |
|
|
|
10 |
7,973 |
Solaris |
|
|
|
1 |
7,219 |
Red Hat |
|
|
|
1 |
6,372 |
OS X (Apple) |
|
|
|
0 |
12,613 |
Solaris |
|
|
|
17 |
31,253 |
Solaris |
|
|
|
0 |
6,376 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
5,321 |
Solaris |
|
|
|
1 |
5,640 |
Linux |
|
|
|
0 |
3,157 |
Ubuntu |
|
|
|
2 |
3,495 |
Programming |
|
|
|
2 |
5,125 |
UNIX for Advanced & Expert Users |
|
|
|
4 |
5,482 |
OS X (Apple) |
|
|
|
17 |
13,715 |
Solaris |
|
|
|
5 |
49,833 |
Shell Programming and Scripting |
|
|
|
4 |
6,202 |
Programming |
|
|
|
5 |
15,413 |
Ubuntu |
|
|
|
1 |
3,461 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
5,083 |
Solaris |
|
|
|
1 |
6,789 |
UNIX and Linux Applications |
|
|
|
1 |
9,713 |
Shell Programming and Scripting |
|
|
|
1 |
5,724 |
Linux |
|
|
|
0 |
7,133 |
Programming |
|
|
|
0 |
4,110 |
Programming |
|
|
|
5 |
8,489 |
Programming |
|
|
|
2 |
5,222 |
Shell Programming and Scripting |
|
|
|
2 |
7,400 |
AIX |
|
|
|
0 |
1,309 |
Software Releases - RSS News |
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)