bug-gplusplus
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gethostbyname_r compilation error


From: francois reygagne
Subject: Re: gethostbyname_r compilation error
Date: Fri, 16 Mar 2001 19:58:59 +0100

Juergen Heinzl wrote:

>
> You're using the reentrant version, so you need the threads library.

I'm using the threads library for a while using -lpthreads.
I use condition_variable, mutex and so on and it works well
but the gethostbyname_r

using the -D_REENTRANT  or not does not fix the trouble

g++  -lm  -lrt -ldl -lpthread test.c -o test
/tmp/ccUVbbGq.o: In function `main':
/tmp/ccUVbbGq.o(.text+0xa): undefined reference to
`__h_errno_location(void)'
collect2: ld returned 1 exit status





reply via email to

[Prev in Thread] Current Thread [Next in Thread]