To compile an application that calls the functions in the MASS libraries, specify mass and massvp4 (or massvp5) (32-bit), or mass_64 and massvp4_64 (or massvp5_64) (64-bit) on the -l linker option. For example, if the MASS libraries are installed in the default directory, you could specify one of the following:
xlc progc.c -o progc -lmass -lmassvp4 xlc progc.c -o progc -lmass_64 -lmassvp4_64 -q64
The MASS functions must run in the round-to-nearest rounding mode and with floating-point exception trapping disabled. (These are the default compilation settings.)
If you wish to use the libmass.a (or libmass_64.a) scalar library for some functions and the normal math library libm.a for other functions, follow this procedure to compile and link your program:
ar -x tan.s32.o libmass.a
ar -qv libfasttan.a tan.s32.o ranlib libfasttan.a
xlc sample.c -o sample dir_containing_libfasttan.a -lfasttanThis links only the tan function from MASS (now in libfasttan.a) and the remainder of the math functions from the standard system library.