Open System Services Shell and Utilities Reference Manual (G06.25+, H06.03+)
Table Of Contents
User Commands (c) c89(1)
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/zcresrl
Common Run-Time Environment (CRE) function object code for G-series processes;
linked automatically.
/G/system/sysnn/zcredll
Common Run-Time Environment (CRE) function object code for H-series processes;
linked automatically.
/G/system/sysnn/zcrtlsrl
C run-time library function object code for G-series processes; linked automatically.
/G/system/sysnn/zcrtldll
C run-time library function object code for H-series processes; linked automatically.
/G/system/sysnn/zicnvsrl
Function object code for G-series processes; linked automatically.
/G/system/sysnn/zicnvdll
Function object code for H-series processes; linked automatically.
527188-003 Hewlett-Packard Company 2−29