Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <029f01c23fe2$32aa5e20$6132bc3e@BABEL> From: "Conrad Scott" To: "Helmut Dipper" Cc: References: <3D537CFE DOT 7C869368 AT sicad DOT de> Subject: Re: collect2: problem with "undefined reference" while linking] Date: Fri, 9 Aug 2002 21:20:25 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mimeole: Produced By Microsoft MimeOLE V6.00.2600.0000 "Helmut Dipper" wrote: > when compiling and linking a program consisting of > pure C-sources I get a "undefined reference" out of > libcygwin.a during linking, see protocol attached. > > I have no idea how to resolve the "undefined reference". > > gcc -o scheme -O2 autoload.o bignum.o bool.o char.o cont.o cstring.o debug.o dump.o env.o error.o exception.o feature.o heap.o io.o list.o load.o malloc.o math.o onfork.o prim.o print.o proc.o promise.o read.o special.o stkmem.o string.o symbol.o terminate.o type.o vector.o main.o stab.o -v -LC:/WIN_NT/system32 But you could follow the suggestion I made when you posted this is the gnu bugs mailing list and remove the -LC:/WIN_NT/system32 switch, which (and I've just tested it for you) fixes your problem. HTH? // Conrad -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/