delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/01/28/05:27:22

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Mon, 28 Jan 2002 11:26:07 +0100
From: Corinna Vinschen <cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: cannot find -ly?
Message-ID: <20020128112607.C11608@cygbert.vinschen.de>
Mail-Followup-To: cygwin AT cygwin DOT com
References: <1011978313 DOT 30334 DOT ezmlm AT cygwin DOT com> <20020127201703 DOT 27468 DOT qmail AT web20406 DOT mail DOT yahoo DOT com>
Mime-Version: 1.0
In-Reply-To: <20020127201703.27468.qmail@web20406.mail.yahoo.com>
User-Agent: Mutt/1.3.22.1i

On Sun, Jan 27, 2002 at 12:17:03PM -0800, y z wrote:
> Hi,
> 
> I want to compile with GCC in combination with FLEX
> and BISON. I have already got lex.yy.c and y.tab.c,
> but when I compiled with the following command: gcc
> y.tab.c -ll -ly, it always shows an error
> information:
> /usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-5
> /../../../../i686-pc-cygwin/bin/ld: cannot find -ll   
>                    
> collect2: ld returned 1 exit status                 
>    
>                  
> I don't know why it cannot find -ll and -ly.  
> who knows how to resolve this problem?    

Typically you don't need them.  There's no such thing as a liby.a
for bison and there's a substitute for libl.a called libfl.a but
you should try linking without it.  Just write your own main()
and yywrap() functions.

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin AT cygwin DOT com
Red Hat, Inc.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019