By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,661 Members | 779 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,661 IT Pros & Developers. It's quick & easy.

cygwin sockets, fd_set compilation issue

P: 1
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
Sep 23 '10 #1
Share this Question
Share on Google+
1 Reply


weaknessforcats
Expert Mod 5K+
P: 9,197
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.
Sep 24 '10 #2

Post your reply

Sign in to post your reply or Sign up for a free account.