X-Recipient: archive-cygwin@delorie.com
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.com
DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org C0E0C3858004
Authentication-Results: sourceware.org;
 dmarc=none (p=none dis=none) header.from=netbeez.net
Authentication-Results: sourceware.org;
 spf=pass smtp.mailfrom=jeff.josephs@netbeez.net
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=netbeez-net.20150623.gappssmtp.com; s=20150623;
 h=mime-version:from:date:message-id:subject:to;
 bh=5AbdLaWI5u74O1Won4BKFSf/27ibeN19FnWh8K3u7FI=;
 b=nxwy4UCaYgCanDBnTlbIuIIseDCVmMOPoruXVOwPyGPRVe1QleEouPcqlqOLmyfwpd
 6AdwShas6Mu03dz5mUK0dL7TcfZcJWD+JYTNVkBGqbgYv/EgkX26lLDQfyhIB2uzYyOL
 dieA6P8rgzwfkHI5KS1+8dEm6h3K72OzlW11qKUfbc90HEKTMJeC9I4FWE/A8vOuV4G2
 U2k0ggjrSQPX4Rbbqat79Hv4cKjlxEL1G8gIxZaalOdLKIF4zHt2M3zqPPorcU62+Qi3
 FMu7xD6EdJdXc6aFHy+K9hUdXuWv5coW4xefXptKkl8Ppe4/gqyroKJj1nXuuFZGQX83
 hbAw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:mime-version:from:date:message-id:subject:to;
 bh=5AbdLaWI5u74O1Won4BKFSf/27ibeN19FnWh8K3u7FI=;
 b=b7P51gf6+kKyhwrNK8TTmNEsGmMZOpVBN938wiuZxSJOfjXu0Y12K1i+Q1UQMBqj47
 n6OvArkETHpHbWDTiYn7XG4LkMeGdmF7Iwyg3hzKUDwYwgY6fCYHU2MiQYPOBF6n7qMi
 Iuh36haoIFX9Jn1TKlCJHL3eRaEqHnAdQuj2H/dlTAD3uR3Xv9S/MvPnogOYEZGpb7Kq
 hwaPLuC987pLAVzymKlTDgjV8X95T+4QsRy+IucT+8WSdX9wwbbVO8pYN2vYaqR4vPCn
 wLGOalqK9jCiZrNKam99+0YbudvACqMxiSGp96I7wgn7exLJzDQOt45LEjrzZ8I+JluE
 7Ywg==
X-Gm-Message-State: AOAM532mJtENK0Kgh4vz8fg0rybfWNzx2GOuHiLi5nlvkKxgaiRYl+n+
 7hQClALam6YBPupkMzyoYFP52HRhk0kW2yS4CU03sLV8wcI=
X-Google-Smtp-Source: ABdhPJzE4Y0PhUoHrBYleNhV2XubvPUdCUJeJ+LpIjDceEydwxaa6ZFRSDkYZdJZB94gy5JJNV+j0c+PlkPhfBl8MN8=
X-Received: by 2002:a37:9c51:: with SMTP id f78mr377992qke.228.1616424230000; 
 Mon, 22 Mar 2021 07:43:50 -0700 (PDT)
MIME-Version: 1.0
From: Jeff Josephs <jeff.josephs@netbeez.net>
Date: Mon, 22 Mar 2021 10:43:31 -0400
Message-ID: <CADn5QPys9B2+xWSPQXOKD7e6jenc0Zu71ewKo8or2T5NqBEU3w@mail.gmail.com>
Subject: External static library within Cygwin
To: cygwin@cygwin.com
X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, DKIM_SIGNED,
 DKIM_VALID, HTML_MESSAGE, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS,
 TXREP autolearn=ham autolearn_force=no version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on
 server2.sourceware.org
X-Content-Filtered-By: Mailman/MimeDel 2.1.29
X-BeenThere: cygwin@cygwin.com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-request@cygwin.com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: "Cygwin" <cygwin-bounces@cygwin.com>

I have a third party external static library in native Windows, and I am
trying to use it within my Cygwin project. After looking at the static
library, I noticed that it uses name mangling, and when compiling the
Cygwin project, I get undefined references.

Aside from modifying the third party library to not do the name mangling,
is there anything within Cygwin that I can do to solve the undefined
references with the name mangled functions?
--
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple
