delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2021/03/22/13:15:59

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 437C7385DC14
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1616433354;
bh=trvU7f0ehf/LFOY3C2cODnH6mnqKe0GkTvB1zw6ues8=;
h=Subject:To:References:Date:In-Reply-To:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:
From;
b=gzMaD8Z41i0mvWccl2deebPjHVZTj5KG7oEEv+05xLIH/J9/QyK4cKxexX6P1TRZA
FgS8Q+4uvKPL03o8KOCpgZ4l2VJ+iz63teVRRVX8UUotC9YGfMNbGyTHOZGuUaEkzs
Bg8GA58NYiUTA6neIdBK3RPvdhBMKAlOr4c+XIlM=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 6E8673858D29
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20161025;
h=x-gm-message-state:subject:to:references:from:message-id:date
:user-agent:mime-version:in-reply-to:content-language
:content-transfer-encoding;
bh=vgJn68Mkpn2MGoDVaIZ05IHB/szx/J9s0bYw2ZegBeg=;
b=Cl34lO1aJCAyxRWnzLXAa+C1vFa9cHRdmIdf8IgR/rs7goQ6O023g6/w6fh5Vj1eGt
Ip+zPlCpjW4v/lsXa+44CPxjiMCCcbh/ing0QdAPXXfq5XVhpbRVI3RTVD4IUGLz9qU7
kjha/6tgi9gC+ZomLu7kd6jE2AD4tr+I9MwVcwh3dEWyhO3V0sR/TRWjX/eOPIbwLtr3
bM7DhSUP+GMIk1HYKoE1pFtu4drBPMDaPTtcADVIh2bg2xblScFnkIvDaLHEOtsGqUH6
/29nE8XJ43h5SVJMgRgp29ATFvajJF7CpXJ6iylg5N4FBfjzlilwkosHBa0/w9Cz0d+l
Ewow==
X-Gm-Message-State: AOAM5339m+59pSqf/7dJP8sWM2mC8E9h1OOifDjECoCakHlyzvNIWyWE
9K57SC56fRqagTgtC3hk7Fy05cAJRNu3vQ==
X-Google-Smtp-Source: ABdhPJxAR87klJ9Kz0gKL6XAkySveKisT9tcKZMYtntdsYd7wE8H/PazY3JDz8ZYdOJdAf2KSCxWpg==
X-Received: by 2002:a5d:5904:: with SMTP id v4mr541257wrd.261.1616433348525;
Mon, 22 Mar 2021 10:15:48 -0700 (PDT)
Subject: Re: External static library within Cygwin
To: cygwin AT cygwin DOT com
References: <CADn5QPys9B2+xWSPQXOKD7e6jenc0Zu71ewKo8or2T5NqBEU3w AT mail DOT gmail DOT com>
Message-ID: <e79ae96a-a87b-6aa9-36bc-aff1462549d1@gmail.com>
Date: Mon, 22 Mar 2021 18:15:44 +0100
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101
Thunderbird/78.8.1
MIME-Version: 1.0
In-Reply-To: <CADn5QPys9B2+xWSPQXOKD7e6jenc0Zu71ewKo8or2T5NqBEU3w@mail.gmail.com>
X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, NICE_REPLY_A,
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-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Marco Atzeri via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Marco Atzeri <marco DOT atzeri AT gmail DOT com>
Errors-To: cygwin-bounces AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces AT cygwin DOT com>

On 22.03.2021 15:43, Jeff Josephs wrote:
> 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?

mangling is typical of C++ and different compilers have different
ways.

About mixing Native Windows, please note the difference
between LLP64 and LP64

https://cygwin.com/cygwin-ug-net/programming.html
--
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

- Raw text -


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