Re: sockfd_lookup

James R. Leu (
Sat, 10 May 1997 14:45:12 -0500 (CDT)

> > __inline struct socket *sockfd_lookup(int fd, struct file **pfile)
> Function prototypes are extern by default; declaring it extern explicitly
> is merely redundant. The two lines are equivalent.

Then why do I get

netmirr.o(.text+0x170): undefined reference to `sockfd_lookup'

when I leave the 'extern' in(using gcc When I remove the 'extern'
it compiles and works fine.


James R. Leu
Network Administrator
CORE Digital Communication Services