www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/07/13/12:33:35

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-AntiVirus: Checked by Dr.Web [version: 4.31a, engine: 4.31b, virus records: 47933, updated: 28.03.2004]
Message-ID: <000701c468f8$234c5640$4c62bcd4@ael>
From: "Alexey Lyubimov" <alexeipobox AT mtu-net DOT ru>
To: <cygwin AT cygwin DOT com>
Subject: gcc: How does gcc look for foo.dll in `gcc ... -lfoo'?
Date: Tue, 13 Jul 2004 20:40:39 +0400
MIME-Version: 1.0
Note-from-DJ: This may be spam

I'm confused since the gcc documentation says that the only thing that
`-lfoo' does, is that it allows gcc to look for `libfoo.a' while linking.
But what about the shared libraries (DLLs)? It seems to me that gcc looks
for `libfoo.dll', `cygfoo.dll', `foo.dll' and may be for all these plus `.a'
suffix, doesn't it? But, for example, libfoo and cygfoo could be two
_different_ libraries at all. Can anybody explain the "-l" feature for DLLs?
I've tried the Cygwin's User Guide and gcc info, but did not find any
answer.

Thank you.
Alexey Lyubimov


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.719 / Virus Database: 475 - Release Date: 12.07.04


--
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/

- Raw text -


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