using the shm_open() function for shared memory access in linux --regarding

G

gunasingh

Hi all,

I am using the shm_open() function declared in the <sys/mman.h>

I get linker error saying undefined reference to shm_open()
function...

Can anyone tell me where can i find the definition for the method
shm_open() ???

Thanks,

Gunasingh
 
A

Antoninus Twink

Hi all,

I am using the shm_open() function declared in the <sys/mman.h>

I get linker error saying undefined reference to shm_open()
function...

Can anyone tell me where can i find the definition for the method
shm_open() ???

You need to link with -lrt.
 
K

Keith Thompson

gunasingh said:
I am using the shm_open() function declared in the <sys/mman.h>

I get linker error saying undefined reference to shm_open()
function...

Can anyone tell me where can i find the definition for the method
shm_open() ???

Since shm_open() is specified by POSIX, not by C, you're likely to get
better information in comp.unix.programmer. Your system's
documenation (probably "man shm_open") may also be a good source of
information.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,008
Latest member
HaroldDark

Latest Threads

Top