Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Unsubscribe: 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: <199911031852.MAA20052@mercury.xraylith.wisc.edu> To: John Fralinger cc: cygwin AT sourceware DOT cygnus DOT com Subject: Re: sys_errlist In-Reply-To: Your message of "Wed, 03 Nov 1999 13:32:04 EST." <00cc01bf2629$ba5e9aa0$9a5c37c0 AT ei DOT dupont DOT com> Date: Wed, 03 Nov 1999 12:52:11 -0600 From: Mumit Khan John Fralinger writes: > I get undefined reference to `sys_errlist` when compiling and linking with > Cygwin 1.0 CD. Same source and Makfiles have no problem on B20.1. > > What am I doing wrong? > Make sure you don't declare sys_errlist in your code, and instead include to get the extern declaration. This is a change since b20.1, which used a static version of sys_errlist, and in CD 1.0/dev snapshots, it's imported from the DLL. Try the following *untested* (I don't have 1.0 CD nor dev snapshots installed to test), and see if this works: #include #include int main () { int i; for (i = 0; i < _sys_nerr; i++) { printf ("%-3d: %s\n", i, _sys_errlist[i]); } return 0; } Regards, Mumit -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com