This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: problem linking to pcre
- From: Corinna Vinschen <corinna-cygwin at cygwin dot com>
- To: cygwin at cygwin dot com
- Date: Thu, 14 Apr 2005 09:50:50 +0200
- Subject: Re: problem linking to pcre
- References: <003001c5406a$ffe7cea0$070aa8c0@adexainc.com>
- Reply-to: cygwin at cygwin dot com
On Apr 13 16:54, Rob Siklos wrote:
> Hi all,
>
> I'm trying to port an app from linux to Cygwin, and it's choking when
> trying to link to the pcre library.
>
> When I compile (with "gcc -lpcre rob.c"), I get the message:
> /c/DOCUME~1/rsiklos/LOCALS~1/Temp/cc7QPrgq.o(.text+0x44):rob.c: undefined
> reference to `_pcre_compile'
> collect2: ld returned 1 exit status
Did you try `gcc rob.c -lpcre'? I suggest reading the ld(1) info pages.
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Project Co-Leader mailto:cygwin@cygwin.com
Red Hat, Inc.
--
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/