X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
Date: Wed, 21 Nov 2007 15:35:07 +0100
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: Undefined reference to _regcmp and _regex
Message-ID: <20071121143507.GC19750@calimero.vinschen.de>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <000201c82c37$bbf247a0$5922b7a3@mea.slb.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <000201c82c37$bbf247a0$5922b7a3@mea.slb.com>
User-Agent: Mutt/1.5.16 (2007-06-09)
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On Nov 21 17:42, Anik Pal wrote:
> Hello All,
> I was porting my application code to windows from solaris  environment using
> cygwin, while compiling goes ok at linking phase I get the following error. 
> 
> /home/Administrator/glds/build/Sgl/tables.c:1744: undefined reference to
> `_regcmp'
> 
> /home/Administrator/glds/build/Sgl/tables.c:1757: undefined reference to
> `_regex'
> 
> Where to get related libraries  for "_regcmp" and "_regex" can anyone tell
> me?

I have no idea.  regcmp/regex are very old functions for regular
expression handling, back from the System III days.  These functions
have been superseded at least three times.  The current implementation
is the POSIX functionality as described on

  http://www.opengroup.org/onlinepubs/009695399/functions/regcomp.html

This is also implemented in Cygwin.  If you need portable regexp
handling, consider to port your application to the POSIX variant.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

