www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2025/06/01/12:48:24

DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 551GmNSQ2347156
Authentication-Results: delorie.com; dmarc=pass (p=none dis=none) header.from=cygwin.com
Authentication-Results: delorie.com; spf=pass smtp.mailfrom=cygwin.com
DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 551GmNSQ2347156
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=gn2/3jJD
X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7A1B43857BA2
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1748796502;
bh=cxOGzdCHgMTlSOwP2mxRcqbbHT+8f7TbYe5tknDIs5Y=;
h=References:In-Reply-To:Date:Subject:To:Cc:List-Id:
List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe:
From:Reply-To:From;
b=gn2/3jJDQVafHXkHgosUzrxCm+u9lNiNtxzTs72fywKScGnnCXHcAzistdUrTWbKC
LvxTXqKTBSyK7VtN5guoFq9bu5ZbicIqxcdiKR+qmY1xkNPbc22+3dfMMAtpwad8Zv
42zevmYrmmj7ytKLhL8PjAXNRQrg2MmUFVUKhck0=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 629233858C62
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 629233858C62
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1748796472; cv=none;
b=mNtr2FtyjsedMJFirtYIvu5Z5n3/FajTFfEkWbCcLJPu/xfI5DPqQnappTcyNbCP6pZ2esWcvu5mFfbXHTrVRQZtKra/9Ye37M4sQ32UN6fUF50PgeEowo/SBOczp7ONeevPj5ZuBVLSY8kvc4JJQzQ3WsT3eE9YuoZ+4g9ukT0=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1748796472; c=relaxed/simple;
bh=dxvKACLYoao24vOSf0HOIw3oPO5380mKuxxuDSHptg8=;
h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To;
b=xFbfmFOBrMhlqEnlYX1U2PL12XQ68Sz1Rf2SLh5TcXLDzzEJO81t40zjtb4SRpttxw7iv6Ph5HHC3HDYPVGLvzUwhe1W6F1vbhQXnxug2DlrQzpwt3yq77dPVbSOcWNH9TJmcw+7AdMVQXb7NRRkleFaQqcKY1K8mSDLV7Rd6vY=
ARC-Authentication-Results: i=1; server2.sourceware.org
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 629233858C62
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20230601; t=1748796471; x=1749401271;
h=cc:to:subject:message-id:date:from:in-reply-to:references
:mime-version:x-gm-message-state:from:to:cc:subject:date:message-id
:reply-to;
bh=sViVewc9+5RgAgUNIxQWTdVjcbFX3s/tz23AU8WBagE=;
b=DDoLwr+v3gyoK4eW7WWqRrx7RuRA3D9Wcs6p4DMPjCMb0KG5sakaKT2/5EG2Y7gZXv
Q2iJ0sRnkYE84rRjNZtSfTT+v/6Ve/Wb+pAnJaDNZNsbszm1WseHKMleaoJ9G22zN3xL
BdHtcCm/sDDCFTHeXRB6QSY9SZ+NcJZ6M2bfvtO5Zu8bh6uHD0Vl1GHzSsQVQdZc5inK
51vEjEeX/WeM6bKf5u1mBYjWYtXbLmHVObJ5NW+ClPyrfvAIUlR4V/BbfGNdp2Ur+vAG
TtseY5bhTjWouiglnx7M/MAzpl80OkRFNpRCsPKeg4SgJ7JsxEn8MFHvOfgDAszQI1ii
emuA==
X-Forwarded-Encrypted: i=1;
AJvYcCVvIyQmJAQeNbWcenI2hH2dKd103FsMk4ZzTZWem48LPq9xPX2mUcwfeql9wpoFrss1+BAXlNs=@cygwin.com
X-Gm-Message-State: AOJu0YxA32lCCh25NUmoky+XLxvJrsefSfo4gCC0npRiHUasTdQEhNWR
B6n8dKsMvS8E+s7HTCuw1DvWFYEDBt3BUPqO8cjzLuFI2fHK2bjo6hj2+ivRqA==
X-Gm-Gg: ASbGncuPxED9u2aVFMjxcceQHqEUg+5yiyU1BZKOm4NurweBzNHSvwJRe06WrYNYYGi
UrgY+hmYghMr5orwMYpJgHGXrwyXRPtt610KFEF4vM6fX0fMmXjrRbmspACKX4ak/M8EFoOK0TL
unRd1UUKm+YNNHdhE4oa6KLxLVWkKAeScjFOJwLywfutjP0NGsrjqT+jvocEcbjKCXk2U5qqh5M
8vjQscYlTWVS5a5U26Rx5r+fviqjX1zRmSJxNre5FmHn/C7tBQMVEw8kDi/uE+rMfAAULquMI6J
e+MgOEI4PKCU9Jxhrba6QWi9uJkMUi8A3q4kQUyGFL3JWz3CjSVkhTjujbcdn3l94NtJ1n6krXm
0Y8wlNOgvlmHpGIZAVyuCO3sboyCD/EE=
X-Google-Smtp-Source: AGHT+IEyOxRus8mckqhZVHJ7WCsLXakCExlL3LcE5oRXqp4Gk73PBsAxdUY72snugi70HXoaUrjnxg==
X-Received: by 2002:aa7:8883:0:b0:742:ccf9:317a with SMTP id
d2e1a72fcca58-747ad77bda4mr19532829b3a.12.1748796470642;
Sun, 01 Jun 2025 09:47:50 -0700 (PDT)
X-Forwarded-Encrypted: i=1;
AJvYcCUgRZWFB78tHxkoCtWYWTM2t+6fLiANF+8EE0tXFnGIyVaWnW5a5oeJJHqr500M6XzNtikRkM8=@cygwin.com
X-Received: by 2002:a17:90b:2245:b0:311:abba:53b6 with SMTP id
98e67ed59e1d1-312464538eemr16031858a91.14.1748796469003; Sun, 01 Jun 2025
09:47:49 -0700 (PDT)
MIME-Version: 1.0
References: <CAAvCNcBVNa7WNeeTFfE90BZBbR=uPOnGjkfcZ9_V4tWPz4xeOA AT mail DOT gmail DOT com>
<20250531090010 DOT ef1726d9646216cdca8751c6 AT nifty DOT ne DOT jp>
<20250531093328 DOT bbbc7535e942273e2344ca9f AT nifty DOT ne DOT jp>
<4e0a50e9-4465-4916-8cef-efa2b0ad9356 AT dronecode DOT org DOT uk>
<CAD8GWsvZHq9o+mQLAdF6ZQ=Cx6scLwJH61sT0BXvEHfOaesc4g AT mail DOT gmail DOT com>
In-Reply-To: <CAD8GWsvZHq9o+mQLAdF6ZQ=Cx6scLwJH61sT0BXvEHfOaesc4g@mail.gmail.com>
Date: Sun, 1 Jun 2025 09:47:33 -0700
X-Gmail-Original-Message-ID: <CANGNY54xakPp2t996CDjJTV9fh4nOB=A67xLX9_GEWWYZd5MBg AT mail DOT gmail DOT com>
X-Gm-Features: AX0GCFs2TSytzMrK6tFmgEKRfAnyTUdyhwGJvQPzGdfoLi2AMzziV-dD9gEa_Fs
Message-ID: <CANGNY54xakPp2t996CDjJTV9fh4nOB=A67xLX9_GEWWYZd5MBg@mail.gmail.com>
Subject: Re: Compile as DOS application?
To: Lee <ler762 AT gmail DOT com>
Cc: Jon Turney <jon DOT turney AT dronecode DOT org DOT uk>, cygwin AT cygwin DOT com
X-Content-Filtered-By: Mailman/MimeDel 2.1.30
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: Eric J Korpela via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Eric J Korpela <korpela AT gmail DOT com>
Sender: "Cygwin" <cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com>
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 551GmNSQ2347156

To be more explicit, a text mode windows program is not a DOS program.  It
will do anything useful on a DOS system without windows.

If you desire 32-bit protected mode DOS programs, DJGPP may be your best
option.  New builds of DJGPP are available at http://www.delorie.com/djgpp/
.  I'm not sure if the current binaries run correctly under cygwin as they
are programs that run under a DOS extender.   They used to work under
Windows and OS/2, but it's been a while since I tried them on a recent
version of Windows.

If you need 16-bit real mode or 16-bit protected mode DOS binaries,
OpenWatcom is an option.  (It can also do 32-bit binaries, but if you are
compiling code meant for GCC,  DJGPP may be the better option).  You can
find it at https://github.com/open-watcom/open-watcom-v2 . OpenWatcom is
included in distributions of FreeDOS.




On Sat, May 31, 2025 at 10:50 AM Lee via Cygwin <cygwin AT cygwin DOT com> wrote:

> On Sat, May 31, 2025 at 11:16 AM Jon Turney via Cygwin
> <cygwin AT cygwin DOT com> wrote:
> >
> > On 31/05/2025 01:33, Takashi Yano via Cygwin wrote:
> > > On Sat, 31 May 2025 09:00:10 +0900
> > > Takashi Yano wrote:
> > >> On Sat, 31 May 2025 00:39:24 +0200
> > >> Dan Shelton wrote:
> > >>> Hello!
> > >>>
> > >>> Does Cygwin have a compiler which allows compiling ISO C applications
> > >>> as DOS *.exe?
> >
> > Actually, we do have a package for an (old) version of djgpp, which I
> > believe targets DOS executables.
>
> At this point I'm pretty much a cargo-cult programmer, but for
> whatever it's worth
>
> i686-w64-mingw32-gcc
> will build a non-gui *.exe program - which is a dos program, yes?
>
> and for a windows program:
>
> if test $target_type = mingw; then
>   WIN_ONLY=
>   CFLAGS="$CFLAGS -DWINVER=0x501"
>   SPECIAL_CFLAGS="-mwindows"
> dnl from the cygwin FAQ: The regular setup allows you to use the
> -mwindows option
> dnl to include a set of the basic libraries user32, gdi32 and comdlg32.
> dnl (and also make your program a GUI program instead of a console program)
>   PTHREAD_LIB=-lpthread
>   echo "Using mingw32 (Win32 GUI)"
> else
>
> Regards,
> Lee
>
> --
> 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
>

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