Open System Services Shell and Utilities Reference Manual (G06.27+, H06.04+)

User Commands (c) c89(1)
4. The command
c89 -g -o test2 x.c y.c z.c
-Wnostdinc
-I/dev/product/app/src
-I/new/usr/include
-lclient -lserver
-L/dev/product/lib
-L/new/usr/lib
compiles the source les x.c, y.c, and z.c and links their respective object les x.o, y.o,
and z.o into the executable le test2. Symbolic information is generated by the compiler
and retained by the linker utility for debugging.
Included les are searched for in the directories /dev/product/app/src
and
/new/usr/include; /usr/include is not searched. nld searches for the libraries
libclient.srl and libserver.srl in the directories /dev/product/lib and /new/usr/lib before
searching in the directories /G/system/sysnn, /lib, /usr/lib, and /usr/local/lib.
5. The command
c89 -g -o test2 x.c y.c z.c
-Wcall_shared
-Wnostdinc
-I/dev/product/app/src
-I/new/usr/include
-lclient -lserver
-L/dev/product/lib
-L/new/usr/lib
compiles the source les x.c, y.c, and z.c and links their respective object les x.o, y.o,
and z.o into the loadle test2. Symbolic information is generated by the compiler and
retained by the linker utility for debugging.
Included les are searched for in the directories /dev/product/app/src and
/new/usr/include; /usr/include is not searched. ld searches for the libraries libclient.so
and libserver.so in the directories /dev/product/lib and /new/usr/lib before searching in
the directories /G/system/sysnn, /lib, /usr/lib, and /usr/local/lib.
6. The command
c89 -o test3 -O -DTYPE=3
-I/usr/friend
-I/usr/myself/headers
foo.c bar.o baz.c
compiles the source les foo.c and baz.c and links their respective object les with bar.o
into the object le test3.o. The preprocessor symbol TYPE is dened to 3, and full
optimization is performed by the compiler. The compiler looks for included les in the
directory /usr/friend, then in /usr/myself/headers, then in /usr/include.
7. The command
c89 -Wsql=release2,sqlmap -c file.c
compiles le.c with NonStop SQL/MP support enabled. The listing includes an SQL
map. The NonStop SQL/MP processor is run, expecting NonStop SQL/MP release 2
features. The NonStop SQL/MP compiler is not run. A -Wsqlcomp ag would run the
NonStop SQL/MP compiler. Note that there is no white space after the comma in the
-Wsql ag.
527188-004 Hewlett-Packard Company 227