In what follows, please note that the standalone and ADAM versions of the NDF_ library differ, in that those routines which use parameters (i.e. those listed in §C.14) are not available in the standalone version.

#### 24.1 Standalone Applications

Standalone applications which use NDF_ routines may be linked by including execution of the command “ndf_link” on the compiler command line. Thus, to compile and link a Fortran application called “prog”, the following might be used:

% f77 -I$STARLINK_DIR/include prog.f -L$STARLINK_DIR/lib ‘ndf_link‘ -o prog

while for an application written in C, you might use:

% cc prog.c -I$STARLINK_DIR/include -L$STARLINK_DIR/lib ‘ndf_link‘ -o prog

Note the use of backward quote characters, which cause the “ndf_link” command to be executed and its result substituted into the compiler command.