DragonFly BSD
DragonFly bugs List (threaded) for 2006-06
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: Undefined reference to 'select()'


From: David Cuthbert <dacut@xxxxxxxxx>
Date: Fri, 16 Jun 2006 23:39:04 -0700

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.



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]