NCARGCC(1NCARG)
π NCARGCC π
okay so bestie, welcome to NCARGCC(1NCARG) β that's the page number and the manual it lives in (NCAR GRAPHICS, in case you were wondering) β and we're about to make compiling C code for the NCAR Graphics low-level utilities feel like a lil hangout π«Ά
πΈ NAME πΈ
ncargcc β the command for compiling C code that uses the NCAR Graphics low-level utilities β¨
π SYNOPSIS π
ncargcc [-ngmath] [-smooth] [-quick] [-super] [-agupwrtx] [-ncarbd] ...
[-ngmathbd] ... [-noX11] ...
π¦ DESCRIPTION π¦
ncargcc is a script, bestie β it calls up the C compiler/linker with all the right NCAR Graphics LLU (that's low-level utility) libraries already in the mix. Every argument up in the synopsis is an NCAR Graphics thing. Everything else you pass works exactly like the cc command on your specific machine, fr fr. Oh and heads up: arguments with quoted strings in them might need to be wrapped in single quotes π
NOTE:ncargcccannot compile NCAR Graphics C programs that call the HLUs (high-level utilities). You have to usenhlccinstead. Go read thenhlccman page for the tea π
If you don't feel like using ncargcc, that's valid β you can just type it on the command line to peek at what gets included in the link line, then copy that info into your own Makefile or script. Main character DIY energy π But real talk: you must define the macro NeedFuncProto for function prototyping to work correctly. no cap.
Also, to actually run ncargcc, your NCARG_ROOT environment variable has to be set to the directory pathname where the NCAR Graphics libraries, binaries, and include files were installed. Not sure what NCARG_ROOT should be? Ask your system administrator or the site representative for NCAR Graphics β they got you π If the NCAR Graphics libraries, binaries, and include files were not installed under one root directory, then instead you'll need to set the environment variables NCARG_LIB, NCARG_BIN, and NCARG_INCLUDE. Please see man ncargintro for more info β¨
When ncargcc is invoked with the -ictrans option, the resulting executable will, upon invocation, send its metafile output to the translator ictrans. And whenever that executable is executed, the environment variable GRAPHCAP must be set to a valid graphics output device. so like, don't forget that π
By default, ncargcc will load the X11 library when linking your C program. If you try running ncargcc and the compiler complains that it cannot find the library for X11, then try running:
ncargcc -L/xxx/yyy/zzz program.c
where /xxx/yyy/zzz is the path leading to your X11 library. If you don't have the X11 library, or you just don't want to link it in, you can use the -noX11 option π
π OPTIONS π
-ngmathβ links in the NCAR Graphicsngmathlibrary β¨-smoothβ link in the"smooth"objects π§-quickβ link in the"quick"objects π¨-superβ link in the"super"objects π-agupwrtxβ link in the"agupwrtx"library π-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 π οΈ-ngmathbdβ just like with the-ncarbdoption, use this for compilers that appear to be having trouble initializing Ngmath-related blockdata variables. It causes a small subroutine to be linked in that helps force the loading of Ngmath blockdata initialization routines π- Note: this option doesn't need to be specified separately if you are already including the
-ncarbdand-ngmathoptions. so like, save yourself the keystrokes bestie π
- Note: this option doesn't need to be specified separately if you are already including the
-noX11β do not link in the X library when linking the code π«
okay so the page literally says this next part about ncargf77 and Fortran programs, and I'm quoting it exactly, don't come for me π
By default, ncargf77 will load the X11 library when linking your Fortran program. This is because the GKS library now has an X11 driver. If you try running ncargf77 and the compiler complains that it cannot find the library for X11, then try running:
ncargf77 -L/xxx/yyy/zzz program.f
where /xxx/yyy/zzz is the path leading to your X11 library. If you do not have the X11 library, or else you just don't want it to be loaded, you can use the -noX11 option π
π₯ SEE ALSO π₯
- Online:
ictrans(1NCARG),gcaps(1NCARG),ncargf77(1NCARG),nhlcc(1NCARG),nhlf77(1NCARG),ncargintro(5NCARG)π - Hardcopy: NCAR Graphics Fundamentals, UNIX Version π
π COPYRIGHT π
Copyright (C) 1987-2002 University Corporation for Atmospheric Research The use of this Software is governed by a License Agreement.
and that's the whole page, bestie π₯³ this was NCAR's February 1993 edition of NCARGCC(1NCARG) β go compile something iconic, ily, bye πβ¨π¦
π¦ where this page comes from
- debian bookworm: libncarg-bin 6.6.2.dfsg.1-1
- debian trixie: libncarg-bin 6.6.2.dfsg.1-10+b2
- ubuntu jammy: libncarg-bin 6.6.2-10build2
- ubuntu questing: libncarg-bin 6.6.2.dfsg.1-10build2
- ubuntu resolute: libncarg-bin 6.6.2.dfsg.1-12
- ubuntu stonking: libncarg-bin 6.6.2.dfsg.1-12build2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms