关于qnx通讯

请前辈指点问题出在那里?谢谢!
我想让两台分别装有qnx和windows的计算机实现通讯,版本是qnxnc621,
网卡已经驱动.写有如下程序.
#include <sys/types.h>
#include <sys/socket.h>
#include <stdio.h>
int main()
{
int sockfd;

socktd=socket(AF_INET,SOCK_DGRAM,0);

}

在qnx下进行如下编译:
qcc -V gcc_ntox86 -o myfile myfile.c
结果如下:
/tep/aaa704545_cc.o:In function “main”:
/tep/aaa704545_cc.o(.text+0x10):undefined reference to “socket”
cc:/usr/bin/ntox86-ld error 1

不知出了什么问题,请指点,非常感谢!

在前面的帖子里已经找到答案了。