Did you add NetSocket.c to your project? I believe gethostname resides
there, and not in the library.
On Tue, 9 Nov 1999, Gaurav Palvia wrote:
> hi pals ,
> today i tried to use NetSocket.lib given in the Palm SDK.I created an app
> that works as an echoclient.
>
> i went into the Project menu and using menu item Add Files i added
> this NetSocket.lib in my AppSources. In my app i included
> sys_socket.h and i used the following wo functions from this library
> 1>NetUTCPOpen
> 2>NetUReadN
> 3>NetUWriteN
> 4> gethostname
> but when i MAKE my application it gives me the following error for each
> function:
>
> eg:
> starter.cpp: gethostname referenced from MainFormEventHandler is undefined.
>
> i dont understand what is the problem.as whenever i try to use any function
> which has been defined in NetSocket.c it gives me the above error.
>
> is there any problem in the way i have included the NetSocket.lib file.if so
> please
> tell me how to use a custom built library file in your project.
>
> i will be highly grateful to u for this act of kindness.
>
>
>
>