NHLCC(1NCARG)

๐Ÿ“ฆ version 6.6.2, in epel 9, fedora 43, fedora 44

๐Ÿ’– NHLCC โ€” the NCAR Graphics C-compiling bestie ๐Ÿ’–

okay so this is the manual page for nhlcc, from the NCAR Graphics manual (section 1NCARG). Buckle up, it's giving compiler-wrapper realness. ๐ŸŽ€


โœจ NAME โœจ

nhlcc โ€” the command you use to compile C code that uses the NCAR Graphics high-level utilities. slay. ๐Ÿ’…


โœจ SYNOPSIS โœจ

nhlcc [-ngmath] [-ncarbd] [-ngmathbd] [-netcdf] [-hdf] ...

yes bestie, that ... is doing SO much heavy lifting, it means you can pass literally anything else through too. ๐ŸŒธ


โœจ DESCRIPTION โœจ

So nhlcc is a script that calls up the C compiler/linker with all the right NCAR Graphics LLU (low-level utility) and HLU (high-level utility) libraries already baked in. no cap. โœจ

The arguments listed up in the synopsis are the ones that are specifically about NCAR Graphics. Every other argument and option behaves exactly like cc does on your particular machine โ€” like, your machine's cc, fr fr. One lil caveat though: arguments that include quoted strings may have to be wrapped in single quotes. ๐Ÿ™ˆ

Not feeling the nhlcc lifestyle? Totally valid. You can just type it on the command line to see what gets included in the link line, and then copy that info into your own Makefile or script. main character energy, honestly. ๐Ÿซถ

โš ๏ธ but listen: you must define the macro NeedFuncProto for function prototyping to work correctly. not optional. periodt. ๐Ÿ’€

To actually run nhlcc, you need your NCARG_ROOT environment variable set to the directory pathname where the NCAR Graphics libraries, binaries, and include files were installed. If you're sitting there like "bestie what do I even set NCARG_ROOT to" โ€” go ask your system administrator or your site representative for NCAR Graphics, they got you. ๐ŸŒˆ

And if the NCAR Graphics libraries, binaries, and include files were not installed under one single root directory? Then you gotta set these three instead:

  • NCARG_LIB
  • NCARG_BIN
  • NCARG_INCLUDE

pls go read man ncargintro for more info, it's the blueprint. ๐Ÿ“–โœจ

One more thing โ€” note that on some systems, if you supply your own binary libraries in addition to the ones nhlcc automatically references, all the libraries must have been created in a similar fashion. that's the vibe check, don't skip it. ๐Ÿ”ฅ


โœจ OPTIONS โœจ

  • -ngmath โ€” links in the NCAR Graphics ngmath library. cute, math-y, iconic. ๐Ÿงฎโœจ
  • -ncarbd โ€” use this one for compilers that appear to be having trouble initializing blockdata variables. ๐Ÿ˜ญ It causes a small subroutine to be linked in that helps force the loading of blockdata initialization routines. basically a little rescue mission for your compiler. ๐Ÿซถ
  • -ngmathbd โ€” just like -ncarbd, but for compilers that appear to be having trouble initializing Ngmath-related blockdata variables. It links in a small subroutine that helps force the loading of Ngmath blockdata initialization routines. ๐Ÿ’…
๐Ÿ’ก Note: you don't need to specify this option separately if you're already including the -ncarbd and -ngmath options. iykyk. ๐ŸŽ€
  • -netcdf โ€” links in the netCDF library. Heads up bestie: this library is not part of NCAR Graphics, so check with your system administrator if you need it installed. You can obtain a copy by doing an anonymous ftp to unidata.ucar.edu. ๐ŸŒ
  • -hdf โ€” links in the HDF library. Same deal: this library is not part of NCAR Graphics, so check with your system administrator if you need it installed. You can obtain a copy by doing an anonymous ftp to ftp.ncsa.uiuc.edu. ๐ŸŒ

โœจ SEE ALSO โœจ

Online, go read these too, they're all part of the fam ๐Ÿซถ:

  • nhlf77(1NCARG)
  • ncargf77(1NCARG)
  • ncargcc(1NCARG)
  • ncargintro(5NCARG)

Copyright (C) 1987-2000
University Corporation for Atmospheric Research
The use of this Software is governed by a License Agreement.

so iconic of them, protecting the software since 1987. ๐Ÿ‘‘๐Ÿ’œ


and that's the whole page bestie โ€” this one's from <strong>NCAR</strong>, dated <strong>April 1995</strong>, filed under <strong>NHLCC(1NCARG)</strong>. go compile something gorgeous โœจ๐Ÿ’–

๐Ÿ“ฆ where this page comes from