Order of linking
Multithreaded applications must link the Threads Library in such a way that
it is initialized
all of the networking libraries.
(However, if a single-threaded application links the Threads Library solely
in order to access the synchronization primitives for inter-process
synchronization, then it should make sure that the Threads Library is
all of the networking libraries.)
For example, in order for your multithreaded
application to operate correctly,
you should ensure that one of the following
line the option
any files to be compiled or linked.
This option ensures that the preprocessor token
any source files are processed and that
all of the libraries listed on the
The application is linked with the Threads Library at link time but
linked with the Networking Services Library at run-time (via
The application is linked first with the Threads Library and then with
the Networking Services Library (via dlopen).
© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 -- 02 June 2005