* netinet/* in Cygwin @ 2019-09-04 6:36 Lukasz Swierczewski 2019-09-04 16:34 ` Brian Inglis 0 siblings, 1 reply; 7+ messages in thread From: Lukasz Swierczewski @ 2019-09-04 6:36 UTC (permalink / raw) To: cygwin Hello, 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? There are problems as standard ... What do you need to do to compile with these libs? -- Best Regards Lukasz Swierczewski -- 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 ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: netinet/* in Cygwin 2019-09-04 6:36 netinet/* in Cygwin Lukasz Swierczewski @ 2019-09-04 16:34 ` Brian Inglis 2019-09-05 6:49 ` Lukasz Swierczewski 0 siblings, 1 reply; 7+ messages in thread From: Brian Inglis @ 2019-09-04 16:34 UTC (permalink / raw) To: cygwin 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 ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: netinet/* in Cygwin 2019-09-04 16:34 ` Brian Inglis @ 2019-09-05 6:49 ` Lukasz Swierczewski 2019-09-05 7:15 ` Csaba Raduly 2019-09-06 17:39 ` Brian Inglis 0 siblings, 2 replies; 7+ messages in thread From: Lukasz Swierczewski @ 2019-09-05 6:49 UTC (permalink / raw) To: cygwin Thanks! It looks like it works ... You can tell where I can find: #include <linux/types.h> #include <linux/errqueue.h> Any idea? ;) --- Best Regards Lukasz Swierczewski W dniu 2019-09-04 18:34, Brian Inglis napisaÅ(a): > 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. -- 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 ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: netinet/* in Cygwin 2019-09-05 6:49 ` Lukasz Swierczewski @ 2019-09-05 7:15 ` Csaba Raduly 2019-09-05 9:37 ` Lukasz Swierczewski 2019-09-06 17:39 ` Brian Inglis 1 sibling, 1 reply; 7+ messages in thread From: Csaba Raduly @ 2019-09-05 7:15 UTC (permalink / raw) To: cygwin list Hi Lukasz, Please don't top-post on this list. On Thu, Sep 5, 2019 at 8:49 AM Lukasz Swierczewski wrote: > > Thanks! > > It looks like it works ... > > You can tell where I can find: > > #include <linux/types.h> > #include <linux/errqueue.h> Have you tried a Linux system ? Csaba -- You can get very substantial performance improvements by not doing the right thing. - Scott Meyers, An Effective C++11/14 Sampler So if you're looking for a completely portable, 100% standards-conformant way to get the wrong information: this is what you want. - Scott Meyers (C++TDaWYK) -- 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 ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: netinet/* in Cygwin 2019-09-05 7:15 ` Csaba Raduly @ 2019-09-05 9:37 ` Lukasz Swierczewski 2019-09-07 6:48 ` Achim Gratz 0 siblings, 1 reply; 7+ messages in thread From: Lukasz Swierczewski @ 2019-09-05 9:37 UTC (permalink / raw) To: cygwin W dniu 2019-09-05 09:14, Csaba Raduly napisaÅ(a): > Hi Lukasz, > > Please don't top-post on this list. > > On Thu, Sep 5, 2019 at 8:49 AM Lukasz Swierczewski wrote: >> >> Thanks! >> >> It looks like it works ... >> >> You can tell where I can find: >> >> #include <linux/types.h> >> #include <linux/errqueue.h> > > Have you tried a Linux system ? > > Csaba I use Windows (Cygwin on Windows 7). Code work well on Linux, but I have a problem ( Windows: <linux/types.h> and <linux/errqueue.h>) Luk -- 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 ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: netinet/* in Cygwin 2019-09-05 9:37 ` Lukasz Swierczewski @ 2019-09-07 6:48 ` Achim Gratz 0 siblings, 0 replies; 7+ messages in thread From: Achim Gratz @ 2019-09-07 6:48 UTC (permalink / raw) To: cygwin Lukasz Swierczewski writes: > I use Windows (Cygwin on Windows 7). > Code work well on Linux, but I have a problem ( Windows: > <linux/types.h> and <linux/errqueue.h>) The sources in question may be inherently unportable and Linux specific or someone pulled in these includes in order to get at some API that really is provided from some other place. Regards, Achim. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ Waldorf MIDI Implementation & additional documentation: http://Synth.Stromeko.net/Downloads.html#WaldorfDocs -- 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 ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: netinet/* in Cygwin 2019-09-05 6:49 ` Lukasz Swierczewski 2019-09-05 7:15 ` Csaba Raduly @ 2019-09-06 17:39 ` Brian Inglis 1 sibling, 0 replies; 7+ messages in thread From: Brian Inglis @ 2019-09-06 17:39 UTC (permalink / raw) To: cygwin On 2019-09-05 00:49, Lukasz Swierczewski wrote: > W dniu 2019-09-04 18:34, Brian Inglis napisaÅ(a): >> 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. > Thanks! > It looks like it works ... > You can tell where I can find: > #include <linux/types.h> > #include <linux/errqueue.h> > Any idea? ;) Unfortunately, system specific includes like linux/types.h and linux/errqueue.h make no sense on other systems which do not have those features, although there are lots of types to choose from on all systems: $ find /usr/include/{asm,machine,sys} -name _default_types.h \ -o -name _types.h -o -name types.h -o -name stddef.h \ -o -name stdint.h -o -name _stdint.h ; \ ls -1 /usr/include/{inttypes,stdint}.h \ /lib/gcc/x86_64-pc-cygwin/*/include/std{def,int}.h /usr/include/asm/types.h /usr/include/machine/types.h /usr/include/machine/_default_types.h /usr/include/machine/_types.h /usr/include/sys/types.h /usr/include/sys/_stdint.h /usr/include/sys/_types.h /lib/gcc/x86_64-pc-cygwin/7.4.0/include/stddef.h /lib/gcc/x86_64-pc-cygwin/7.4.0/include/stdint.h /usr/include/inttypes.h /usr/include/stdint.h -- 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 ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2019-09-07 6:48 UTC | newest] Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2019-09-04 6:36 netinet/* in Cygwin Lukasz Swierczewski 2019-09-04 16:34 ` Brian Inglis 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
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).