Open System Services Shell and Utilities Reference Manual (G06.29+, H06.08+, J06.03+)
User Commands (c) c89(1)
12. The command
c89 -Wmxcmp -Wmxcmp_files=test1.m,test1.o
SQL-compiles the MDF file test1.m using the NonStop SQL/MX mxcmp compiler and
processes the file test1.o using the NonStop SQL/MX mxCompileUserModule without
also linking it.
13. The following command on a TNS/R system
c89 -Wsrl -Wnld=-ul -o mylib mylib.c
compiles the source file mylib.c and links the object file to create a native user library, a
special shared run-time (SRL) library. The file is named mylib in the current working
directory.
14. The command
c89 file.c -lc -WBstatic -l archive -WBdynamic -l native
compiles the source file file.c and links the object file into an executable file a.out in the
current working directory. The linker performs dynamic linking by searching first for the
file libc.srl and then libc.a. The linker then performs static linking by searching for the
file libarchive.a. The linker then performs dynamic linking by searching first for the file
libnative.srl and then libnative.a.
15. The command
c89 file.c -lc -Wcall_shared -WBstatic
-l archive -WBdynamic
-l native
compiles the source file file.c and links the object file into loadfile a.out in the current
working directory. eld or ld performs dynamic linking by searching first for the file
libc.so and then libc.a. The linker then performs static linking by searching for the file
libarchive.a. The linker then performs dynamic linking by searching first for the file
libnative.so and then libnative.a.
16. The command
c89 -Wsqlcomp -c exefile
invokes the NonStop SQL/MP compiler to process the already linked file exefile.
17. The command
c89 -Wmxcmp -c module.m
invokes the NonStop SQL/MX compiler to process the module definition file module.m.
FILES
/usr/bin/c89
Native c89 in the OSS environment.
/G/system/sysnn/zcppcdll
C++ run-time library function object code for J-series and H-series processes; linked
automatically when you compile and link C++ surce files or when you specify the
-Wcplusplus flag.
527188-021 Hewlett-Packard Company 2−33