Digital recommends that you use the kf77 -fkapargs='-
conc'
Digital UNIX linker switch default -call_
shared
which causes an image to be linked with the DECthreads
shared library libpthread.so
. The shared library
default eliminates the need for you to rebuild images each time
a new version of Digital UNIX is released. However, in the case
where you want to link the image to the DECthreads archive library
libpthread.a
, use the -non_shared
switch
and one of the following procedures based on your version of Digital
UNIX:
If you are upgrading from KAP Version 3.0 to 3.1, you should have performed the following installation steps:
/usr/opt/KPFBASE300/libpthread.a
, to a private area, for example, /usr/users/tmp
/libpthread.a
/usr/sbin/setld -d KPFBASE300
/usr/sbin/setld -i KPFBASE310
libpthread.a
as
follows:
ln -sf /usr/users/tmp/libpthread.a /usr/lib/libpthread.a
kf77 -fkapargs='-conc' -non_shared myprog.f
Version 4.0a does not contain libpthread.a
. Your
choices are as follows:
kf77 -fkapargs='-conc'
Digital
UNIX linker switch default -call_shared
which
links an image with the DECthreads shared library /usr
/shlib/libpthread.so
.
You should have installed the CMPDEVENH subset (Development Enhancements for Digital UNIX) from the Digital UNIX 4.0b operating system CD-ROM. The DECthreads archive library is at the following location:
/usr/opt/alt/user/lib/threads/libpthread.a
To link to libpthread.a
when you are building a
parallel program, use the following command:
kf77 -fkapargs='-conc' -non_shared \ /usr/opt/alt/usr/lib/threads/libpthread.a myprog.f