On Fri, 2003-02-14 at 21:59, Jiahan Chen wrote: > However, link still complained about shm_open() and shm_unlink(): > undefined reference to `shm_open' > undefined reference to `shm_unlink' > I did try default and adding libmm.a and libglib.a: > gcc -o program program.c > gcc -o program -lmm -lglib program
Neither libmm nor libglib are a part of Glibc, so I'm not sure why you're trying to use them. To get an idea of what a library does, it may be helpful to: rpm -qif /path/to/lib.so I believe that the shm_* functions are in -lrt Also, I have no idea why the man page for shm_* doesn't just *say* that. Comments from the crowd? > >from Documentation/filesystems/tmpfs.txt: > >tmpfs has the following uses: > > >2) glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for > > POSIX shared memory (shm_open, shm_unlink). Adding the following > > line to /etc/fstab should take care of this: > > > tmpfs /dev/shm tmpfs defaults 0 0 > > I added this item to /etc/fstab, it seems fine after reboot. That should have been there by default, was it not? -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe https://listman.redhat.com/mailman/listinfo/redhat-list