(BSD System Compatibility)
(BSD) C compiler
/usr/ucb/cc [options] file . . .
/usr/ucb/cc is the C compiler for the
/usr/ucb/cc is identical to /usr/bin/cc
header files are used.
libraries are linked
System V libraries.
accepts the same options as
with the following exceptions:
for included files whose names do not begin with a
prior to the usual directories.
directories from multiple
options are searched in the order specified.
The preprocessor first searches for
files in the directory containing
and then in directories named with
options (if any),
and finally, in
to the list of directories searched for libraries by
This option is passed to /usr/bin/ld.
Directories specified with this option are searched before
/usr/ucblib and /usr/lib.
-Y LU, dir
Change the default directory used for finding libraries.
The -Y LU,dir option may have unexpected results,
and should not be used.
This option is not in the UNIX System V base.
If the -p option to /usr/ucb/cc is being used with the
-dn and -lm options,
then this invocation of the /usr/ucb/cc command will fail.
This occurs because /usr/ucb/cc executes as the following command:
(/usr/bin/cc -YP,:/usr/ucblib:/usr/ccs/lib:/usr/lib $@ \
-I /usr/ucbinclude -l ucb -l socket -l nsl)
This command requests a search of the library libnsl (-l nsl)
which is a shared object, rather than an archive library.
To fix this problem, you must invoke /usr/bin/cc directly,
using the same format as shown above for /usr/ucb/cc,
but without the -l nsl option.
An example would be:
/usr/bin/cc -YP,:/usr/ucblib:/usr/ccs/lib:/usr/lib -p -dn \
-lm prog.c -I /usr/ucbinclude -l ucb -l socket
© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 25 April 2004