Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sources.redhat.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@sources.redhat.com>
List-Help: <mailto:cygwin-help@sources.redhat.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@sources.redhat.com
Delivered-To: mailing list cygwin@sources.redhat.com
Message-ID: <D1F0002F0A8FD411ACEC00805FE675CE260E8A@zuk02exm02.comm.mot.com>
From: Josifovski Ljubomir-BLJ01Z
	 <Ljubomir_Josifovski-BLJ01Z@email.mot.com>
To: "'Charles S. Wilson'" <cwilson@ece.gatech.edu>
Cc: "Cygwin Mailing List (E-mail)" <cygwin@sourceware.cygnus.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)
Content-Type: text/plain


> 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

