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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
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