Linux applications
Before compiling and linking a NOF application, specify the directory
where shared libraries are stored, so that the application can find them at
run time. To do this, set the environment variable LD_RUN_PATH to /opt/ibm/sna/lib, or to
/opt/ibm/sna/lib64 if you are compiling a 64-bit application.
To compile and link 32-bit applications, use the following options:
-I /opt/ibm/sna/include -L /opt/ibm/sna/lib -lnof -lsna_r -lpthread -lpLiS
To compile and link 64-bit applications, use the following options:
-I /opt/ibm/sna/include -L /opt/ibm/sna/lib64 -lnof -lsna_r -lpthread -lpLiS
The option -lpLiS
is required only if you will be running the application on a CS/AIX server;
you do not need to use it if you are building the application on an IBM Remote
API Client and it will run only on the client. As an alternative to using
this option, you can set the the environment variable LD_PRELOAD to /usr/lib/libpLiS.so before
compiling and linking the application.