delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/10/29/05:11:00

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-ID: <3BDD2ADC.DCC3C720@syntrex.com>
Date: Mon, 29 Oct 2001 11:09:32 +0100
From: Pavel Tsekov <ptsekov AT syntrex DOT com>
X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.4.2-2 i686)
X-Accept-Language: en
MIME-Version: 1.0
To: Anh Nguyen <anguye123 AT yahoo DOT com>
CC: cygwin AT cygwin DOT com
Subject: Re: compile semaphore and share memory is not working!
References: <20011028223748 DOT 14270 DOT qmail AT web13303 DOT mail DOT yahoo DOT 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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019