question aobut libsocket

Hi,

I am having some problems with TCP/IP funcions included in library
libsocket.
My include header looks like this:
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <stdarg.h>
#include <string.h>
#include <strings.h>
#include <errno.h>
#include <netdb.h>
#include <fcntl.h>
#include <sys/time.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h


But when I try to call functions such as gethostbyname() (which is included
in netdb.h) I am told by the compiler that function.o: undefined reference
to ‘gethostbyname.’ In fact, any function in libsocket such as send, listen
has the same problem. I checked common.mk makefile that the library path
does include the path C:\QNXsdk\target\qnx6\x86\lib, where is the library
file contains. Can somebody give me a hint about what might be wrong?

Thanks,
Adam

answer in other group (please don’t cross post)

“Adam Lee” <leeyt@gradient.cis.upenn.edu> wrote in message
news:afa2ic$9tn$1@inn.qnx.com

Hi,

I am having some problems with TCP/IP funcions included in library
libsocket.
My include header looks like this:
#include <stdio.h
#include <stdlib.h
#include <unistd.h
#include <stdarg.h
#include <string.h
#include <strings.h
#include <errno.h
#include <netdb.h
#include <fcntl.h
#include <sys/time.h
#include <sys/types.h
#include <sys/socket.h
#include <netinet/in.h
#include <arpa/inet.h


But when I try to call functions such as gethostbyname() (which is
included
in netdb.h) I am told by the compiler that function.o: undefined
reference
to ‘gethostbyname.’ In fact, any function in libsocket such as send,
listen
has the same problem. I checked common.mk makefile that the library path
does include the path C:\QNXsdk\target\qnx6\x86\lib, where is the library
file contains. Can somebody give me a hint about what might be wrong?

Thanks,
Adam