[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

Re: [LI] question about htonl?



hi 

what system are you using ? Your lib files may not have been installed
fully. Or you may need to give the path of the lib file while compiling
your program. 
example:  gcc -lpthread test.c -o test 
to use the pthread library.
i a not sure which lib file has htonl.

On Sat, 2 Oct 1999, Chien-Lung Wu wrote:

> Hi, friends:
> 
> I got a problem to compile a network program using function of
> htonl(unsigned long). As I use the man menu og htonl, I have to include
> the header file <netinet/in.h>. However I always got the error message as
> following at link step:
>           inter_phil_switching.o(.text+0x1cf5): undefined reference to
> 	  `htonl(unsigned long)'
>  Can anyone help me out. TIA.
> 
> Chien-Lung
> 
> 
> ****************************************************************************
> Chien-Lung Wu						cwu4@xxxxxxxxxxxx
> Graduate Student of ECE 				(O) 919-513-1894
> at North Carolina State University			(H) 919-233-6724
> ****************************************************************************
> 
> 
> --------------------------------------------------------------------
> For more information on Linux in India visit http://www.linux-india.org/
> The Linux India mailing list does not accept postings in HTML format.
> 

--------------------------------------------------------------------
For more information on Linux in India visit http://www.linux-india.org/
The Linux India mailing list does not accept postings in HTML format.