This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: compile semaphore and share memory is not working!
- To: Anh Nguyen <anguye123 at yahoo dot com>
- Subject: Re: compile semaphore and share memory is not working!
- From: Pavel Tsekov <ptsekov at syntrex dot com>
- Date: Mon, 29 Oct 2001 11:09:32 +0100
- CC: cygwin at cygwin dot com
- References: <20011028223748.14270.qmail@web13303.mail.yahoo.com>
Anh Nguyen wrote:
>
> Hello everyone. I have problem compiling semaphore and
> share memory in cygwin. I did download and install the
> icp packages. However, when i compile my programs i
> get these errors:
>
> /cygdrive/c/WINDOWS/TEMP/ccfnoqO7.o(.text+0x33a):server2.c:
> undefined reference to `shmat'
> /cygdrive/c/WINDOWS/TEMP/ccfnoqO7.o(.text+0x1884):server2.c:
> undefined reference to `shmget'
> collect2: ld returned 1 exit status
>
> Anyone has any ideas what is wrong with these. Note, i
> did include
> #include <sys/ipc.h>
> #include <sys/sem.h>
> #include <sys/shm.h>
> #include <sys/msg.h>
> in my program.
do you specify the library containing the IPC functions on the
gcc command line ?
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/