(SUMMARY) using mlock()

From: Lawrence MacIntyre <lpz_at_nautique.epm.ornl.gov>
Date: Thu, 25 Sep 1997 12:37:35 -0400

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 <haymanr_at_icefog.sois.alaska.edu> 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_at_ornl.gov   http://www.epm.ornl.gov/~lpz    lpz_at_nautique.epm.ornl.gov
Received on Thu Sep 25 1997 - 19:07:54 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:36 NZDT