Configuring Advanced Server for UNIX Adapting the configuration
Product Manual U7613-J-Z815-6-76
© Siemens Nixdorf Informationssysteme AG 1995 Pfad: D:\O7613e6\u7613e.k05
5.9.1 Call options for compilers and linkers
If you wish to use the communication mechanisms of Advanced Server for UNIX for devel-
opment purposes, you must include the necessary declaration files required for the API
function in the source texts. Similarly, the required libraries must be included when linking
the object files. The following table contains the options for calling the compil er and linker:
The shared libraries are also used by the Advanced Server for UNIX processes.
Example:
The source file apitest.c contains API calls (e.g.DosMakeNmPipe()). This source file is
compiled and linked using the program make with the following makefile:
The number of Advanced Server for UNIX libraries linked to the obje ct may vary
with the API functions you are using. All possible libraries are listed in the table
above.
Call Meaning
Compiler
Linker
-I/usr/include/lmx
-llmx
-lnsl
-ldl
-lmproc
-lext
-lrpcapi
-lmsrpc
-ltask
-lsam
-lasusec
-lasulang
-lCrun
Advanced Server for UNIX declaration
files
Advanced Server for UNIX library
Shared library for TLI
For dynamic linking
UNIX system library
UNIX system library
Advanced Server for UNIX library
Advanced Server for UNIX library
Advanced Server for UNIX library
Advanced Server for UNIX library
Advanced Server for UNIX library
Advanced Server for UNIX library
UNIX system library
LIBS=-llmx -lasulang -lnsl -ldl -lmproc -lext
apitest: apitest.o
cc -o apitest.o $(LIBS)
apitest.o: apitest.c
cc -c apitest.c -I/usr/include/lmx
i
i