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: <073001c0fc7c$d7b19e60$0200a8c0@lifelesswks> From: "Robert Collins" To: , "Tak Ota" Cc: References: <20010623 DOT 234118 DOT 91281111 DOT Takaaki DOT Ota AT am DOT sony DOT com> Subject: Re: linking with errno Date: Sun, 24 Jun 2001 17:11:08 +1000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 X-OriginalArrivalTime: 24 Jun 2001 06:59:33.0407 (UTC) FILETIME=[390352F0:01C0FC7B] ----- Original Message ----- From: "Tak Ota" To: Cc: Sent: Sunday, June 24, 2001 4:41 PM Subject: Re: linking with errno > On Sat, 23 Jun 2001 22:36:23 -0700 (PDT), Malcolm Dew-Jones wrote: > > > linking: > > gcc -O -DUNIX -DTERMCAP -DLINUX -DANSIC sedt.o edit.o (...etc...) > > -ltermcap -o sedt > > How about adding -lc in the link options. > > -Tak > No!. That won't solve the problem. The problem is a incorrect definition of errno, probably due to not including the appropriate header file. See the cygwin archives - this is a common question. Rob -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple