Undefined Reference for sysctl

Hi all,

I’m Divakar, currently using QNX 4.25. Watcom 10.6 compiler.
I’m novice to QNX.

I am currently get an error for sysctl() when there is
application(if_nameindex.c) calling sysctl().
Error message:
sysctl_ is an undefined reference.

Is there any library to be linked. I have attached the if_nameindex.c
for reference.Can u please throw me some inputs regarding it.

Also I would use vim, can anyone point me to a link where I can download
and install it.

Thanks in advance.

\

Regards,

Divakar