This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: problem linking to pcre


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]