delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/06/24/01:37:03

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
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 <yf110 AT victoria DOT tc DOT ca>
X-Sender: yf110 AT vtn1
To: cygwin AT cygwin DOT com
Subject: linking with errno
Message-ID: <Pine.GSO.3.95.iB1.0.1010623222325.21004A-100000@vtn1>
MIME-Version: 1.0

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019