delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT sources DOT redhat DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT sources DOT redhat DOT com> |
List-Help: | <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT sources DOT redhat DOT com |
Delivered-To: | mailing list cygwin AT sources DOT redhat DOT com |
Message-ID: | <D1F0002F0A8FD411ACEC00805FE675CE260E8A@zuk02exm02.comm.mot.com> |
From: | Josifovski Ljubomir-BLJ01Z |
<Ljubomir_Josifovski-BLJ01Z AT email DOT mot DOT com> | |
To: | "'Charles S. Wilson'" <cwilson AT ece DOT gatech DOT edu> |
Cc: | "Cygwin Mailing List (E-mail)" <cygwin AT sourceware DOT cygnus DOT com> |
Subject: | RE: Q: apache: logresolve.c: undefined reference to `h_errno' |
Date: | Fri, 15 Dec 2000 13:23:35 -0000 |
MIME-Version: | 1.0 |
X-Mailer: | Internet Mail Service (5.5.2650.21) |
> 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 DOT Josifovski AT dcs DOT shef DOT ac DOT uk,blj01z AT email DOT mot DOT com http://www.dcs.shef.ac.uk/~ljupco -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |