Open System Services Shell and Utilities Reference Manual (G06.29+, H06.08+, J06.03+)
c99(1) OSS Shell and Utilities Reference Manual
2. The command
c99 -Wnowarn -Wwarn=262 test1.c
compiles the source file test1.c and links the object file into an executable file
a.out in the current working directory. All compiler warning messages except
message number 262 are disabled.
3. The command
c99 -c /home/me/app/test1.c
compiles the source file /home/me/app/test1.c into the object file test1.o in the
current working directory.
4. The command
c99 -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 files x.c, y.c, and z.c and links their respective object files
x.o, y.o, and z.o into the executable file test2. Symbolic information is gen-
erated by the compiler and retained by the linker utility for debugging.
Included files are searched for in the directories /dev/product/app/src and
/new/usr/include; /usr/include is not searched. The linker 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
c99 -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 files x.c, y.c, and z.c and links their respective object files
x.o, y.o, and z.o into the loadfile test2. Symbolic information is generated by
the compiler and retained by the linker utility for debugging.
Included files are searched for in the directories /dev/product/app/src and
/new/usr/include; /usr/include is not searched. The linker 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
c99 -o test3 -O -DTYPE=3
-I/usr/friend
-I/usr/myself/headers
foo.c bar.o baz.c
2−60 Hewlett-Packard Company 527188-021