---
name: "h4fc"
section: "1"
platform: "linux"
package: "hdf4-tools"
version: "4.3.0-1+b1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/h4fc"
---

# h4fc(1)

compiles an HDF4 F90 program

## NAME

h4fc - compiles an HDF4 F90 program

## SYNOPSIS

**h4fc**  \[*OPTIONS*\] \<*compile line*\>

## DESCRIPTION

**h4fc** compiles an HDF4 F90 program.

## OPTIONS

- FC**-help**F\[0\]

  Display usage information

- FC**-echo**F\[0\]

  Show all the shell commands executed

- FC**-prefix**F\[0\]=*DIR*

  Prefix directory to find HDF4 FC*lib/*F\[0\] and FC*include/*F\[0\] subdirectories \[default: /usr\]

- FC**-show**F\[0\]

  Show the commands without executing them

- \<*compile line*\>

  the normal compile line options for your compiler. **h4fc** uses the same compiler you used to compile HDF4. Check with your compiler's man pages for more information on which options are needed.

You can override the compiler, linker, and whether or not to use static or shared libraries to compile your program by setting the following environment variables accordingly:

- HDF4\_F77

  use a different Fortran 77 compiler

- HDF4\_F77LINKER

  use a different linker
