problem linking to pcre
Corinna Vinschen
corinna-cygwin@cygwin.com
Thu Apr 14 07:55:00 GMT 2005
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/
More information about the Cygwin
mailing list