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 Date: Sat, 23 Jun 2001 22:36:23 -0700 (PDT) From: Malcolm Dew-Jones X-Sender: yf110 AT vtn1 To: cygwin AT cygwin DOT com Subject: linking with errno Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII I get the following error message when trying to link some files using gcc comd.o(.text+0x1abf):comd.c: undefined reference to `errno' What cygwin thing must I install, and what file/library must I include on the gcc command line to access this variable? Some command lines that may be relevent are shown next... example compile: gcc -O -DUNIX -DTERMCAP -DLINUX -DANSIC -c -o sedt.o sedt.c (Various files all compile with no apparent problem) linking: gcc -O -DUNIX -DTERMCAP -DLINUX -DANSIC sedt.o edit.o (...etc...) -ltermcap -o sedt I tried adding various library files (e.g. -lcygwin) but I haven't figured out which one is the one I need to link with to get errno, or perhaps something entirely different is what I need to do (?) . Thanks for any assistance... malcolm -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple