public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Brian Inglis <Brian.Inglis@SystematicSw.ab.ca>
To: cygwin@cygwin.com
Subject: Re: netinet/* in Cygwin
Date: Wed, 04 Sep 2019 16:34:00 -0000	[thread overview]
Message-ID: <4c91c547-1f85-c24d-3404-bbd3d947cb63@SystematicSw.ab.ca> (raw)
In-Reply-To: <61fcbddd17cbfe370eb3ae95489d17e8@ithena.net>

On 2019-09-04 00:36, Lukasz Swierczewski wrote:
> I have question.
> I need netinet/* in my C project.
> For example:
> #include <netinet/icmp6.h>
> #include <netinet/ip_icmp.h>
> #include <netinet/in.h>
> #include <netinet/ip6.h>
> Is this available in Cygwin?

$ cygcheck -p usr/include/netinet/
Found 6 matches for usr/include/netinet/
cygwin-devel-3.0.6-1 - cygwin-devel: Core development files
cygwin-devel-3.0.7-1 - cygwin-devel: Core development files
cygwin-devel-3.1.0-0.3 - cygwin-devel: Core development files
cygwin32-2.10.0-1 - cygwin32: Cygwin 32bit toolchain
cygwin32-2.6.0-1 - cygwin32: Cygwin 32bit toolchain (installed binaries and
support files)
cygwin32-2.8.2-1 - cygwin32: Cygwin 32bit toolchain

$ zfgrep netinet /etc/setup/cygwin-devel.lst.gz
usr/include/netinet/
usr/include/netinet/in.h
usr/include/netinet/in_systm.h
usr/include/netinet/ip.h
usr/include/netinet/ip6.h
usr/include/netinet/ip_icmp.h
usr/include/netinet/tcp.h
usr/include/netinet/udp.h

Install cygwin-devel package.

> There are problems as standard ...
> What do you need to do to compile with these libs?

In many cases, nothing, as the functions are built into libc in the cygwin dll;
otherwise for other libraries, add -l... to your build command line as you would
on Unix.

-- 
Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada

This email may be disturbing to some readers as it contains
too much technical detail. Reader discretion is advised.

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

  reply	other threads:[~2019-09-04 16:34 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-09-04  6:36 Lukasz Swierczewski
2019-09-04 16:34 ` Brian Inglis [this message]
2019-09-05  6:49   ` Lukasz Swierczewski
2019-09-05  7:15     ` Csaba Raduly
2019-09-05  9:37       ` Lukasz Swierczewski
2019-09-07  6:48         ` Achim Gratz
2019-09-06 17:39     ` Brian Inglis

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4c91c547-1f85-c24d-3404-bbd3d947cb63@SystematicSw.ab.ca \
    --to=brian.inglis@systematicsw.ab.ca \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).