cygwin sockets, fd_set compilation issue

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • gurrawar
    New Member
    • Sep 2010
    • 1

    #1

    cygwin sockets, fd_set compilation issue

    Hi ,

    I am facing the issue compiling c++ using cygwin and gnu compiler. below are the errors that i am getting while am compiling. Can anyone please help.

    ompiling: Socket2.cc
    In file included from /usr/include/cygwin/sys_time.h:13,
    from /usr/include/sys/time.h:27,
    from /usr/include/sys/socket.h:16,
    from Socket2.h:22,
    from Socket2.cc:13:
    /usr/include/sys/select.h:31: error: `fd_set' has not been declared
    /usr/include/sys/select.h:31: error: `fd_set' has not been declared
    /usr/include/sys/select.h:31: error: `fd_set' has not been declared
    /usr/include/sys/select.h:33: error: `fd_set' has not been declared
    /usr/include/sys/select.h:33: error: `fd_set' has not been declared
    /usr/include/sys/select.h:33: error: `fd_set' has not been declared
  • weaknessforcats
    Recognized Expert Expert
    • Mar 2007
    • 9214

    #2
    You are missing a header file that declares fd_set OR you are using fd_set before you include the header file that declares it.

    Comment

    Working...