h4cc(1)
π h4cc β compiles an HDF4 C program
okay bestie, welcome to h4cc(1), the manual page for the little script that makes your HDF4 C program go brrr. sit down, grab a strawberry, we're doing this πβ¨
β¨ SYNOPSIS β¨
h4cc [OPTIONS] <compile line>
that's it. that's the whole vibe. options, then your normal compile line, and boom π₯
π¦ DESCRIPTION π¦
h4cc compiles an HDF4 C program. that's literally the job. it takes your C code and turns it into a program that can talk to HDF4, and it handles all the include paths and libraries so you don't have to sit there googling "where is my libmfhdf" at 2am π iconic behaviour honestly.
π OPTIONS π
-helpβ shows you the usage info. the "hello, what do i even do" button π«Ά-echoβ prints out every single shell command it runs. it's giving let me show you my work, and honestly we love the transparency π-prefix=DIRβ the prefix directory where it goes looking for the HDF4lib/andinclude/subdirectories. default is/usrπΈ-showβ shows you the commands but does not execute them. window shopping. no cap, nothing actually happens π-shlibβ compile against the shared HDF4 libraries. this is the default when HDF4 was built without static libraries β¨-noshlibβ compile against the static HDF4 libraries. this is the default when HDF4 was built with static libraries π§±<compile line>β the totally normal compile line options for your compiler. and here's the cute part:h4ccuses the same compiler you used to compile HDF4. check your compiler's man pages for more info on which options are needed π
π ENVIRONMENT VARIABLES π
you can also override the compiler, the linker, and whether you're doing static or shared libraries, just by setting these bad boys:
HDF4_CCβ use a different C compiler π οΈHDF4_CLINKERβ use a different linker πHDF4_USE_SHLIB=[yes|no]β use the shared or static version of the HDF4 library. default isnoπ
reminder bestie: those defaults for-shlib/-noshlibdepend on how HDF4 itself was built β if it was built without static libraries, shared is your default; if it was built with static libraries, static is your default. check before you assume, iykyk π
that's the whole page, and honestly? it ate. π
this was h4cc(1) from 28 May 2016 β go compile something gorgeous, main character. bye bestie! ππ¦β¨
π¦ where this page comes from
- debian bookworm: hdf4-tools 4.2.15-5 Β· HDF4
- debian trixie: hdf4-tools 4.3.0-1+b1 Β· HDF4
- ubuntu jammy: hdf4-tools 4.2.15-4 Β· HDF4
- ubuntu noble: hdf4-tools 4.2.16-4build1 Β· HDF4
- ubuntu questing: hdf4-tools 4.3.0-1
- ubuntu resolute: hdf4-tools 4.3.1-2 Β· HDF4
- ubuntu stonking: hdf4-tools 4.3.1-3 Β· HDF4
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms