delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/02/10/14:40:59

Sender: root AT delorie DOT com
Message-ID: <38A2FDA0.424B38B6@inti.gov.ar>
Date: Thu, 10 Feb 2000 15:04:16 -0300
From: salvador <salvador AT inti DOT gov DOT ar>
Organization: INTI
X-Mailer: Mozilla 4.6 [en] (X11; I; Linux 2.0.38 i686)
X-Accept-Language: es-AR, en, es
MIME-Version: 1.0
To: djgpp AT delorie DOT com
Subject: Re: DJGPP and CYGWIN - can use both? Which is better? rxvt use?
References: <38A1D7C3 DOT E8280885 AT citilink DOT com>
Reply-To: djgpp AT delorie DOT com

Dan Holmdahl wrote:

> Hello,
>
>     Some questions about DJGPP and CYGWIN.
>
> Are they mutually exclusive?  That is, do you use one or the other, not
> both?

If you mean: Can I mix modules compiled by djgpp with cygwin ones? the answer is
no and they are  mutually exclusive. If you mean "can I develope with one and
then compile the code with the other? the answer is yes if you restricte
yourselft to ANSI and most POSIX routines.

> If only one is used, which is better?

You are asking in a quite complex place:

1) We all use djgpp.
2) DJ is working for Red Hat (formerly Cygnus) in the Cygwin project ;-)

I think the answer is: depends on what you want. I find djgpp much more
confortable and I Cygwin as a slow and heavy patch to make Win32 behave as a
POSIX system. I can't stand the slow screen output of Cygwin tools.
Additionally:
* If you want to create non GPL programs with Cygwin you must use -no-cygwin and
stick with Mingw (which have some problems when used through Cygwin) or by a
license.
* With djgpp you don't need a license.
* With Cygwin you can write Win32 GUI programs, with djgpp is possible but
tricky.

> If you can use both, what are the
> benefits of doing so?

Generate .exes for DOS and .exes for Win32. I maintain a Turbo Vision port and
it currently can be compiled with both and hence you can write a native Win32
program that is in fact a text mode program.

> I am interested because I have DJGPP installed on my windows 95 system
> with many popular unix tools (gcc, grep, sed, etc.).  I was interested
> in finding a xterm like replacement for the command.com prompt.

And what shell will be used in xterm?

> I want
> a command line interface which scrolls, etc.

There are DOS TSRs for it. I don't know if Cygwin's bash adds scrolling (nothing
bash should have by yourself but easy to do with the Win32 console API). You can
use Cygwin's bash to call djgpp tools most of the time (be careful with the
command line limits).

SET

--
Salvador Eduardo Tropea (SET). (Electronics Engineer)
Visit my home page: http://welcome.to/SetSoft or
http://www.geocities.com/SiliconValley/Vista/6552/
Alternative e-mail: set-soft AT usa DOT net set AT computer DOT org
                    set AT ieee DOT org set-soft AT bigfoot DOT com
Address: Curapaligue 2124, Caseros, 3 de Febrero
Buenos Aires, (1678), ARGENTINA Phone: +(5411) 4759 0013



- Raw text -


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