Undefined reference to 'select()'

David Cuthbert dacut at kanga.org
Fri Jun 16 23:39:04 PDT 2006


walt wrote:
Something recently broke several ports with this same link error:

foo.o(.text+0x965): In function `foo::select()':
: undefined reference to `select(int, fd_set*, fd_set*, fd_set*, timeval*)'
Note that it's giving you the types of parameters -- this is a C++ 
feature (typesafe linkage), but select() is a C function.

A header has probably lost it's extern "C" { } guard.





More information about the Bugs mailing list