Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Message-ID: From: Josifovski Ljubomir-BLJ01Z To: "'Charles S. Wilson'" Cc: "Cygwin Mailing List (E-mail)" 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 in your source code. I tried #including 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