Menu

About allocator with redhat 9

Help
2004-08-16
2004-08-17
  • Nobody/Anonymous

    hi ,

    I am Ian from Taiwan. I am trying your allocator in redhat 9 for shared
    memory for STL. I attempt to make use of it to manipulate objects in STL
    container.

    What happen you may has know is that system appear " undefined reference
    to `shm_unlink' " message when I compiler and link my source code.

    Could u tell me how to solve it ?

    gcc version 3.2.2 20030222 (Red Hat Linux 3.2.2-5)

    TKS.

                     Ian

     
    • Marc Bumble

      Marc Bumble - 2004-08-17

      Do a man on shm_open(3) and  you will see:

      SHM_OPEN(3)                Linux Programmer's Manual               SHM_OPEN(3)

      NAME
             shm_open,  shm_unlink  -  Create/open  or  unlink  POSIX  shared memory
             objects

      SYNOPSIS
             #include <sys/types.h>
             #include <sys/mman.h>

             void * shm_open(const char *name, int oflag, mode_t mode);

             int shm_unlink(const char *name);

      etc.

      That is where shm_unlink is defined.  My guess is that you do not have
      something  installed.  If  you are  using  the latest  version of  the
      allocator  and  you  have  a  complete RedHat  9.0  installation,  the
      allocator will  compile.  The latest  version was compiled  and tested
      under RedHat 9.0 on an i386 box,

      Marc

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.