[FEEDBACK] Issue with fd_set, FD_ZERO, FD_SET, FD_SETSIZE : Cygwin
Yeo Kai Wei
yeokaiwei@hotmail.com
Tue Feb 7 06:59:26 GMT 2023
On 7/2/2023 1:53 pm, Brian Inglis wrote:
> On 2023-02-06 21:28, Yeo Kai Wei via Cygwin wrote:
>> On 7/2/2023 9:54 am, Eliot Moss wrote:
>>> On 2/7/2023 11:34 AM, Yeo Kai Wei wrote:
>>>> On 7/2/2023 7:27 am, Eliot Moss wrote:
>>>>> On 2/7/2023 10:03 AM, Yeo Kai Wei via Cygwin wrote:
>>>>>> On 7/2/2023 4:59 am, gs-cygwin.com@gluelogic.com wrote:
>>>>>>> On Tue, Feb 07, 2023 at 04:33:53AM +0800, Yeo Kai Wei wrote:
>>>>>> I updated Cygwin to 3.4.5-1.x86_64.
>>>>>> $ uname -a
>>>>>> CYGWIN_NT-10.0-19045 DESKTOP-P3E71RB 3.4.5-1.x86_64 2023-01-19
>>>>>> 19:09 UTC x86_64 Cygwin
>>>>>> However, the same problem occurs.
>>>>>> Cygwn-devel doesn't seem to work.
>>>>>> $ gcc -o selectStdIn selectStdIn.c
>>>>>> selectStdIn.c:9:10: fatal error: sys/select.h: No such file or
>>>>>> directory
>>>>>> #include <sys/select.h>
>>>>>> ^~~~~~~~~~~~~~
>>>>>> compilation terminated.
>>>>> Well, on my system cygcheck -f /usr/include/sys/select.h clearly says
>>>>> that the file came from cygwin-devel-3.4.3-1. Maybe you misspelled
>>>>> cygwin-devel ? You do have to select the package explicitly, too.
>>>> I just reinstalled Cygwin but I'm unsure of what I missed.
>>>> I did "cygcheck -f /usr/include/sys/select.h" and it seems to tell
>>>> me that I do have cygwin-devel-3.4.5-1
>>>> Did I miss a step?
>>> What gcc are you running? Maybe not cygwin's?
>> I think I'm running MinGW's gcc.
>> I typed in "gcc --version" and this is what Cygwin returned.
>> $ gcc --version
>> gcc.exe (x86_64-posix-seh-rev0, Built by MinGW-W64 project) 8.1.0
>> Copyright (C) 2018 Free Software Foundation, Inc.
>> This is free software; see the source for copying conditions. There
>> is NO
>> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
>> PURPOSE.
>> What should I do next?
>
> If you choose to install cygwin-devel in Cygwin Setup, it will install
> all the tools and files needed to develop under Cygwin, as well as
> rebuild Cygwin itself and most of the components and packages.
>
> If you use the provided Desktop and Start Menu shortcuts to run bash
> under mintty, or both under Cygwin/X, you should be able to work as if
> under any Linux or similar distro.
>
> You must have the virtual Cygwin paths
> /home/$USER/bin:/usr/bin:/bin:/usr/sbin:/sbin:... first in PATH and
> similar /usr/share/{man,info,awk} /usr/lib/gawk for
> {MAN,INFO,AWK,AWKLIB}PATH in your preferred shell initialization files
> e.g. in bash $OSTYPE == "cygwin".
Hi Brian,
Thank you for the help.
I think I found the issue, I believe it's due to MinGW's build of gcc (I
could be wrong).
I downloaded "gcc -core" and it worked.
More information about the Cygwin
mailing list