The libraries are at /opt/nag/fnsg604db/ and can be linked with
f90 test.f90 -lnagfl90_32_mips4 -L'/opt/nag/fnsg604db/' -I'/opt/nag/fnsg604db/nag_mod_dir_32_mips4/'or
f90 test.f90 -lnagfl90_32_mips4_noblas -L'/opt/nag/fnsg604db/' -I'/opt/nag/fnsg604db/nag_mod_dir_32_mips4/'for the version not using the BLAS.
The library is in the default SGI double precision, eight bytes (double precision IEEE floating point precision) which is sometimes called real by NAG. The library is presently at Mark 4.
The example programs are easy to use through the nagexample script. On your own directory you give the command
/opt/nag/nagexample NAG_nameor (if you wish not to use the BLAS)
/opt/nag/nagexample_2 NAG_namewhere NAG_name is the name of the routine you wish to test, for example nag_lib_support_ex01 or nag_quad_1d_ex09. The example program, together with its data file (if any), will be copied to your present directory, compiled, linked, and run.
The example program can quite often be used as the basis for the application program you are about to write.