On Sat, May 31, 2025 at 11:16 AM Jon Turney via Cygwin <cygwin@cygwin.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