stevens wrote:
> Can I put net_look_impl to main function?Like this:
> int main(int argc, char** argv) {
>     net_data_t ipv4=net_lookup_impl(NHF_INET,NULL);
>     return (EXIT_SUCCESS);
> }
> And I compiled 
> $cc -D_KERNEL -lnsl -lsocket -c hook_test.c
> $ld -dy -Nmisc/neti -o hook_test hook_test.o
> Undefined                       first referenced
>  symbol                             in file
> net_lookup_impl                     hook_test.o
> ld: fatal: Symbol referencing errors. No output written to hook_test

apart from all else, you shouldn't specify -D_KERNEL for building a 
userland process.

Michael
-- 
Michael Schuster        http://blogs.sun.com/recursion
Recursion, n.: see 'Recursion'
_______________________________________________
networking-discuss mailing list
[email protected]

Reply via email to