Q: apache: logresolve.c: undefined reference to `h_errno'

Josifovski Ljubomir-BLJ01Z Ljubomir_Josifovski-BLJ01Z@email.mot.com
Fri Dec 15 05:23:00 GMT 2000


> The correct thing to do is to #include <netdb.h> in your source code. 

I tried #including <netdb.h> at the top of logresolve.c, but I still get the
error. 
(maybe I should include it somewhere else, or #define something?)

> The next best thing is to change
> 
> extern int h_errno;
> to
> extern __declspec(dllimport) int h_errno;

This works.

Many thanks,

-- 
Ljubomir Josifovski
mailto:L.Josifovski@dcs.shef.ac.uk,blj01z@email.mot.com
http://www.dcs.shef.ac.uk/~ljupco

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com



More information about the Cygwin mailing list