Undefined reference to 'select()'

walt wa1ter at myrealbox.com
Sun Jun 18 00:28:36 PDT 2006

On Sun, 18 Jun 2006, David Cuthbert wrote:

> walt wrote:
> > Just for fun I added this prototype to the code:
> > extern "C" int select(int, fd_set*, fd_set*, fd_set*, struct timeval*);
> > Now I get complaints from <sys/select.h> about duplicate definitions
> > of select()  :o(
> This indicates that sys/select.h should be wrapped in the extern "C". Sounds
> like this got removed from a recent commit...

Simon just committed your suggestion -- problem solved!

Thanks to you both for your help.

More information about the Bugs mailing list