This is the mail archive of the cygwin@sources.redhat.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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



> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]