This is the mail archive of the
cygwin@sources.redhat.com
mailing list for the Cygwin project.
RE: Q: apache: logresolve.c: undefined reference to `h_errno'
- To: "'Charles S. Wilson'" <cwilson at ece dot gatech dot edu>
- Subject: RE: Q: apache: logresolve.c: undefined reference to `h_errno'
- From: Josifovski Ljubomir-BLJ01Z <Ljubomir_Josifovski-BLJ01Z at email dot mot dot com>
- Date: Fri, 15 Dec 2000 13:23:35 -0000
- Cc: "Cygwin Mailing List (E-mail)" <cygwin at sourceware dot cygnus dot com>
> 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