getipnodebyname

Barry Margolin barmar at alum.mit.edu
Mon May 31 14:41:00 UTC 2004


In article <c9ebqh$1261$1 at sf1.isc.org>, <tushar.agarwal at wipro.com> 
wrote:

> Hi
> 
> 	
> 	I am working on HP-UX 11i/aCC compiler 3.45, I was using an api
> getipnodebyname which was working fine if I link my binary without
> linking -lbind ( -lbind was required for DNS lookup code written inside
> the same binary I am making), If I include -lbind while linking my
> binary that getipnodebyname call is being resolved by libbind not by OS
> lib and giving error. I want my api to be resolved by Os library not
> from bind. How I can do that.

I think that it searches libraries in the order that they're specified 
on the linker command line, so put the system library (-lc) ahead of 
-lbind.

-- 
Barry Margolin, barmar at alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***


More information about the bind-users mailing list