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 sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com Message-Id: <200002281737.LAA23633@hp2.xraylith.wisc.edu> To: Kyle Downey cc: cygwin AT sourceware DOT cygnus DOT com Subject: Re: postgres link failure on cygwin 1.0 In-reply-to: Your message of "28 Feb 2000 11:32:28 EST." <20000228163228 DOT 4172 DOT qmail AT pb151 DOT postoffice DOT net> Date: Mon, 28 Feb 2000 11:37:11 -0600 From: Mumit Khan Kyle Downey writes: > I'm getting a link failure looking for _sys_nerr (from errno.h) when compilin > g > postgresql 6.5.3 on cygwin 1.0 (CD distro, unmodified except for addition of > the CWilson /usr/local and cygipc 1.05 distros. I have notified the maintaine > r > about this, but since he says in the docs it compiles on b20.1, I wanted to > see if it was just a Cygwin b20.1 -> 1.0 change, esp. because it's a system > call that's missing. I may just have to add a library that I don't know > about. > > What puzzles me is that _sys_nerr is defined in libcgywin.dll, which is being > linked against: You've probably fallen into the trap of *declaring* _sys_nerr as an external variable without importing it from the DLL. Check for the following in your code: extern int _sys_nerr; which is incorrect. Remove that and use the definition from , which is: extern int _sys_nerr __declspec(dllimport); Regards, Mumit -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com