Re: sockfd_lookup

James R. Leu (jleu@chaos.coredcs.com)
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 2.7.2.1)? When I remove the 'extern'
it compiles and works fine.

James

-- 
James R. Leu
Network Administrator
CORE Digital Communication Services
jleu@coredcs.com