delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2024/08/17/20:51:21

DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 47I0pLCH1577693
Authentication-Results: delorie.com;
dkim=pass (1024-bit key, unprotected) header.d=cygwin.com header.i=@cygwin.com header.a=rsa-sha256 header.s=default header.b=SfHqZV9c
X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 64DF43861018
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1723942278;
bh=oC37g5ndaLMd52kmu+CKbBhLp5j4LQb0kSP4XMJ5Y0o=;
h=Date:Subject:To:List-Id:List-Unsubscribe:List-Archive:List-Post:
List-Help:List-Subscribe:From:Reply-To:From;
b=SfHqZV9cmkksj35vcz3TF6dGyM3g0G6DNjkPUoS9y/WPAYRBkSxOS/5TGvossOED2
yi3+5TqZP9mNpGtvjW9G1j/vBO2feb7Tb6q4jI0Nb3rnar3WuOLyJg6NLg7cv0uAfu
v4PzCAnhPTAa79VI8xqAat9S8WLj6ItPF48ATt2k=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 4363D3858402
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 4363D3858402
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1723942218; cv=none;
b=OeJC8OFQn9NB2eT2FrEKcgqvF7Z85Z1YcWSb8gCOeD8U9kxGqS7i4wpLE0qtejjxAaMiNSnSaDvhV9tp5cAl7rgDct8B0RGWdbWlK2aMNXseJkVK4ppECXiK4U0B8dD8Z2RVNZjgNjaLTTONvpsQ7tHHL5zbJEOkUr68NtJHnXU=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1723942218; c=relaxed/simple;
bh=oPs3G2qa4G+/iph2YPLLXSGbogiVdJWmzvQybyidH+E=;
h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To;
b=SIU1BzwfPS2JtuDAC4wr5Fao81SxNcGoHnShCXg7EtxBP2krxKKMaS9XAn31WI5eWAm6VAnt4l5bBPfdR+3pD3rZb45jARRoQuD7UIufdu+oXh1Hk6zaH9uLc2bNfiDbje8KIB4AVbkYLfNWW2Nq7izmhJI03qnxv9fBzxET/o4=
ARC-Authentication-Results: i=1; server2.sourceware.org
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20230601; t=1723942215; x=1724547015;
h=to:subject:message-id:date:from:mime-version:x-gm-message-state
:from:to:cc:subject:date:message-id:reply-to;
bh=oPs3G2qa4G+/iph2YPLLXSGbogiVdJWmzvQybyidH+E=;
b=uhq5u6op/fVE2Mxkl9m4S3Vh4kwgV2qXNpMXHOM6EUNrpRKCArykTPjHBsb+SE/1ty
rFyrj88VZyGuVJgDtt0QrfcmoW3iJ3UY/2CQehtRpyGReNQndHrgzBUw6X4xdDMHhXyF
mpKG/Ije/7egme2vceNBfYzI72r0Il3a9tHsS643ui89uK/XELV4+Wfuw0tOd5Ah2zYY
6DthYUszWFqPubtUOiyPudnYHpqyj+Ok5Lt9Cv0w5isU2Gp8b+yQaHXMYwd91tD2AGEa
a1gSHm6LhuP7v/oAgmF619cgCopxCH8F2G+/VEIVwcGuFeHjVInGSTASQ4izF7zSUNNB
Wesg==
X-Gm-Message-State: AOJu0Ywg/c/c659RJZaiZvrWjaqBSx36t4p2YKQuIJd15Qz8YXe6lWHb
2sFQR1uKAR6v46loQWPeVyw261gYRrHUdGNEKC6uvgfwN162TpfBSqogD9VOoepQbRdrC98yuD+
CM+z21yB/q28RibLSzxjAcbBljJgxGg==
X-Google-Smtp-Source: AGHT+IGat6TaQxFv6MJwu90peJ0afXFX5BF5txKdfRdWkiPSIM9CfGJyfEddVuqAnlbe1n/5deYYn3OjpvBs/EbfBI4=
X-Received: by 2002:a05:622a:4806:b0:44f:e12e:300a with SMTP id
d75a77b69052e-453741b4d59mr70133261cf.12.1723942215051; Sat, 17 Aug 2024
17:50:15 -0700 (PDT)
MIME-Version: 1.0
Date: Sun, 18 Aug 2024 00:50:03 +0000
Message-ID: <CALHxfhK4vRG_=q6g_YJ9ZyGyPkUVOUgm17PCPEh2ho+06i0CxQ@mail.gmail.com>
Subject: Using and linking CRT functions from Cygwin runtime binaries
To: cygwin AT cygwin DOT com
X-Spam-Status: No, score=-0.4 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,
SPF_HELO_NONE, SPF_PASS, TXREP,
T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on
server2.sourceware.org
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.30
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
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: Rafael Kitover via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Rafael Kitover <rkitover AT gmail DOT com>
Sender: "Cygwin" <cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com>

Hi, haven't been here in a while.

I am building a Cygwin runtime dependent library with some Win32 API
code. I ran into a couple of issues related to CRT functions (MSVCRT
in the case of the Cygwin dll.)

I got a linker error for an undefined symbol for the CRT function
`stricmp()`. For the time being I added a trivial reimplementation.

What I'd like to know is whether it is possible to link CRT functions
to Cygwin runtime dependent binaries at all, and if so how.

The other problem, which I am fixing on the MinGW-w64 list, is that
some MinGW Win32 API headers fail to compile because some CRT
functions are undefined under Cygwin, in this case `sprintf_s()`. What
is the right way to fix this?

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