This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Undefined reference to _regcmp and _regex
- From: Corinna Vinschen <corinna-cygwin at cygwin dot com>
- To: cygwin at cygwin dot com
- Date: Wed, 21 Nov 2007 15:35:07 +0100
- Subject: Re: Undefined reference to _regcmp and _regex
- References: <000201c82c37$bbf247a0$5922b7a3@mea.slb.com>
- Reply-to: cygwin at cygwin dot 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/