Mail Archives: cygwin/2006/02/03/15:21:14
koool, that explains much better...thanks a lot.
On Fri, 03 Feb 2006 Eric Blake wrote :
>-----BEGIN PGP SIGNED MESSAGE-----
>Hash: SHA1
>
>Re-adding cygwin mailing list:
>http://cygwin.com/acronyms/#PPIOSPE
>
>Top-posting reformatted: http://cygwin.com/acronyms/#TOFU
>
> >> I am new to Cygwin. I have a very basic question.
> >> There is a tool Driftnet available only for Unix. I want to
>write it
> > for
> >> I Windows making a few improvements as a part of my Master's
>thesis. I
> >> am confused here, can cygwin provide me some files like
>netinet/tcp.h
> >> etc. available in Linux (which are used for coding driftnet)
>in
> > Windows?
> >
> > Yes, cygwin has <netinet/tcp.h>. In fact, if you have source
>code that
> > compiles under Linux, it is often the case that the same
>source code will
> > compile under cygwin with minimal tweaking.
> >
>
>According to Amruta on 2/3/2006 12:49 AM:
> > But does that mean to run this software everybody will have to
>download
> > cygwin on their machine?
>
>If you compile against cygwin, yes. There are other projects out
>there,
>such as mingw, which allow native compilation that does not
>depend on
>cygwin1.dll (in fact, cygwin's gcc comes with a -mno-cygwin flag
>to select
>mingw compilation). However, mingw cannot support as many
>headers as
>cygwin, because it is cygwin doing the translation from POSIX
>semantics to
>windows. Discussing mingw compilation is somewhat off-topic on
>this list,
>as it more properly belongs on the mingw list.
>
> > Is there any way you can simply keep the required files (say
>in my case
> > netinet/tcp.h) on your system and don't need to keep entire
>cygwin package.
>
>No - headers are provided by the system for a reason - compiling
>against
>headers means that your program must run on the system that
>provided those
>headers. Windows doesn't provide <netinet/tcp.h> because
>Microsoft
>doesn't believe in following standards such as POSIX. Your
>choices are to
>do some heavy porting to what windows actually does provide, or
>else to
>let cygwin do the porting and introduce a dependency on cygwin.
>
> > Basically it doesn't make sense if people have to install 100s
>of MB of
> > files for running the tool.
>
>100s of MB? I beg to differ. A minimal cygwin installation is
>just a few
>megabytes; cygwin1.dll itself is currently 1.8 meg (actually, I
>haven't
>done a minimal install lately to see how much really IS
>installed, maybe
>the set of Base packages in cygwin has grown to 100 megabytes by
>now).
>But there is no requirement that you must download every single
>package
>provided at cygwin.com to use cygwin.
>
>- --
>Life is short - so eat dessert first!
>
>Eric Blake ebb9 AT byu DOT net
>-----BEGIN PGP SIGNATURE-----
>Version: GnuPG v1.4.1 (Cygwin)
>Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
>Comment: Using GnuPG with Thunderbird -
>http://enigmail.mozdev.org
>
>iD8DBQFD41hW84KuGfSFAYARAofyAKChjBtqWEyCXUvn+qPyRNvVwTE3wACgzwTe
>ikvK4f2rwYx7WpdRDUGe6uU=
>=CfBI
>-----END PGP SIGNATURE-----
>
>--
>Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
>Problem reports: http://cygwin.com/problems.html
>Documentation: http://cygwin.com/docs.html
>FAQ: http://cygwin.com/faq/
>
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
- Raw text -