If the source file is stored in the POSIX file system, you can compile your application program with the following POSIX shell command:
$ cc -c program.c
If necessary, you can use the -O switch to optimize the program code and -g for debugging.
The following command links the compiled program:
$ cc -o program program.o -lxnet
The following command compiles and links the program in one step:
$ cc -o program program.c -lxnet
In order to be able to compile your SOCKETS(POSIX) or XTI(POSIX) user program with the POSIX shell, the software packages CPP and POSIX-HEADER must be installed in POSIX. The package installation is described in the manual "POSIX Basics for Users and System Administrators".
The functions of SOCKETS(POSIX) support the ability of the C compiler to generate programs containing ASCII literals, see also the manual "C/C++ Compiler".