The C Statistics API is implemented as the following shared library:
/opt/SUNWconn/lib/libba_stat.so.1
Your source code must include the following line:
#include <netinet/ba_stat.h> |
To compile your application, use the cc(1B) command with the following switch:
-I/opt/SUNWconn/include |
To link the shared library with your application, use the ld(1) command with the following switches:
-L/opt/SUNWconn/lib -R/opt/SUNWconn/lib -lba_stat
For example:
$ld -o myexe myobj -L/opt/SUNWconn/lib -R/opt/SUNWconn/lib -lba_stat |
For an example of how to use a Makefile to link your application, see the Makefile for the code examples, /opt/SUNWconn/ba/examples/Makefile.