Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Thu, 14 Apr 2005 09:50:50 +0200 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: problem linking to pcre Message-ID: <20050414075050.GQ22241@cygbert.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <003001c5406a$ffe7cea0$070aa8c0 AT adexainc DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <003001c5406a$ffe7cea0$070aa8c0@adexainc.com> User-Agent: Mutt/1.4.2i 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 AT cygwin DOT 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/