Siemens V4.0 ユーザーズマニュアル

ページ / 365
Configuring Advanced Server for UNIX
Adapting the configuration
Product Manual
U7613-J-Z815-6-76
©
 S
iem
e
n
s
 N
ix
dor
In
fo
rm
at
io
n
s
s
y
s
te
m
e
 A
G
 1
9
9
5
 
P
fad
: D:
\O
7
613
e6
\u
761
3e
.k
05
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:
  
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 object 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