From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 108214 invoked by alias); 19 Oct 2019 12:56:57 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 108206 invoked by uid 89); 19 Oct 2019 12:56:57 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.1 spammy=HX-Languages-Length:454, H*c:alternative X-HELO: mail-io1-f44.google.com Received: from mail-io1-f44.google.com (HELO mail-io1-f44.google.com) (209.85.166.44) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sat, 19 Oct 2019 12:56:56 +0000 Received: by mail-io1-f44.google.com with SMTP id b136so10688966iof.3 for ; Sat, 19 Oct 2019 05:56:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=Q7B2HkpLp0m0pvS/N9i+nPVSzsWclRpWSpt6QZdhCyk=; b=A5K0Biqq2ck5OWQ9x5k0f4chcwDSwFX1OSL2P2IjEs1DRTQgkD8YfwDjwLS88IdmFT mMWjflgRGYCUwPaKmSMisWv17oaPbALANEFx+tw1xhxtIpLwpwqjTzsQf87R4k9j+HvZ YtOP8LNBtkSIV1cL76g6lb9BYBHsJsi/dTAoAg4CTya1tzKyEvC0DNeQ81MZTqSNyIjN 9DNWpNA87SSxue3k9Bwe75QH9Xq6sLto1UlTOsB8T3fO8f+u1RTwHJ+CSAecS/ISYcoE +jajBIYxjV/W1xpI5x8kh/SOG+XvvZXguBbFPuf/XnyoYBrBi6pyH08MKEJlBOeI+Idg PQ2w== MIME-Version: 1.0 Received: by 2002:a92:2005:0:0:0:0:0 with HTTP; Sat, 19 Oct 2019 05:56:53 -0700 (PDT) From: Biswapriyo Nath Date: Sat, 19 Oct 2019 12:56:00 -0000 Message-ID: Subject: How does linker choose library with same function export? To: cygwin@cygwin.com Content-Type: text/plain; charset="UTF-8" X-IsSubscribed: yes X-SW-Source: 2019-10/txt/msg00111.txt.bz2 I want to use socket() from ws2_32.dll file. But cygwin1.dll also has that export. When I use `-lws2_32` option, will gcc **always** choose ws2_32.lib? My query is somewhat similar with FAQ #5.11. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple