Siemens Unix V4.0 Overviews & Installation Instructions page 138

Siemens advanced server overview and installation
Table of Contents

Advertisement

Configuring Advanced Server for UNIX
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 compiler and linker:
Compiler
Linker
i
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:
LIBS=-llmx -lasulang -lnsl -ldl -lmproc -lext
apitest: apitest.o
apitest.o: apitest.c
i
Product Manual
Call
-I/usr/include/lmx
-llmx
-lnsl
-ldl
-lmproc
-lext
-lrpcapi
-lmsrpc
-ltask
-lsam
-lasusec
-lasulang
-lCrun
The shared libraries are also used by the Advanced Server for UNIX processes.
cc -o apitest.o $(LIBS)
cc -c apitest.c -I/usr/include/lmx
The number of Advanced Server for UNIX libraries linked to the object may vary
with the API functions you are using. All possible libraries are listed in the table
above.
Adapting the configuration
Meaning
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
U7613-J-Z815-6-76

Advertisement

Table of Contents
loading

This manual is also suitable for:

Advanced server unix v4.0

Table of Contents