From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96078617110591.tru64-unix-managers.marc@archive.invalid> From: Lawrence MacIntyre Date: Thu, 25 Sep 1997 16:37:35 +0000 To: tru64-unix-managers Subject: (SUMMARY) using mlock() X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96078617110591 I wrote: >I want to use the mlock() and munlock() subroutines. The man page >doesn't suggest any special linking options, but when I try to link a >program using them, I get: > >nautique> cc -g -o duatmloop duatmloop.c >ld: >Unresolved: >memlk (and some more stuff) Randy Hayman wrote: >try: > >cc -g -o duatmloop -lrt duatmloop.c > >to link with the librt.so version It works perfectly. Thanks, Randy! -- Lawrence ~ ------------------------------------------------------------------------ Lawrence MacIntyre Oak Ridge National Laboratory 423.574.8696 lpz@ornl.gov http://www.epm.ornl.gov/~lpz lpz@nautique.epm.ornl.gov